You are not logged in.

#1 05 Jun 2015 12:40

Giacomo
Member
From: Italy
Registered: 20 Oct 2011
Posts: 42

Useless topic, nevermind

Hi all, if I search strings with colons, in example:

C:\>ROUTE PRINT | FINDSTR ":"

FINDSTR works as I suppose it would work:

Active Routes:
Default Gateway:       192.168.2.1
Persistent Routes:

Indeed, if I try to use the /V switch to match all strings but the ones with a colon:

C:\>ROUTE PRINT | FINDSTR \V ":"

I got an error:

FINDSTR: Cannot open :

Is this a known behaviour?
My operating system is Windows XP service pack 3 and my locale is it_IT.

Last edited by Giacomo (05 Jun 2015 18:15)

Offline

#2 05 Jun 2015 12:58

npocmaka
Member
From: Bulgaria
Registered: 03 Dec 2009
Posts: 446

Re: Useless topic, nevermind

you are using backslash instead of slash.Try with:

C:\>ROUTE PRINT | FINDSTR /V ":"

Offline

#3 05 Jun 2015 18:18

Giacomo
Member
From: Italy
Registered: 20 Oct 2011
Posts: 42

Re: Useless topic, nevermind

Thanks, I am really sorry, I didn't noticed my typo.
How should "Cannot open :" be interpreted anyway?

Offline

#4 05 Jun 2015 18:53

npocmaka
Member
From: Bulgaria
Registered: 03 Dec 2009
Posts: 446

Re: Useless topic, nevermind

Giacomo wrote:

Thanks, I am really sorry, I didn't noticed my typo.
How should "Cannot open :" be interpreted anyway?

with backslash it is taken as path.Syntax for findstr could also be

findstr "string" filepath

Offline

#5 05 Jun 2015 18:59

Giacomo
Member
From: Italy
Registered: 20 Oct 2011
Posts: 42

Re: Useless topic, nevermind

Thanks again.

Offline

Board footer

Powered by