[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

DOS Findstr - String contains Quotes

RAW

1/29/2006 3:37:00 PM



Using the DOS findstr command, how do you search for a string that contains
quotes? Via batch file, Iâ??m trying to search for a string in the lmhosts file
using the findstr command. The string Iâ??m searching for contains quotes which
appear to be affecting the way the findstr command interprets the string.
Here is the command and syntax that Iâ??m using.

Command:
findstr /c:"192.168.1.1 "MP_100 \0x1A" #PRE"
%SystemRoot%\system32\Drivers\etc\lmhosts

Output:
C:\>findstr /c:"192.168.1.1 "MP_100 \0x1A" #PRE" &
SystemRoot\system32
\Drivers\etc\lmhosts
FINDSTR: Cannot open \0x1A #PRE
The system cannot find the path specified.

Any help will be greatly appreciated.

RAW