Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch file RegEx query
Name: svkrec Date: September 8, 2008 at 07:39:27 Pacific OS: Win XP CPU/Ram: P4/1GB Product: Dell
Comment:
Hi,
I need help to write FINDSTR search string in batch program using regex.
I want to ignore all those lines that start with '(single quote) even if they contain FINDSTR search string. If the matching line does not start with '(single quote), I want that line in my output file.
I tried with something like this @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION For /F "tokens=1" %%A in (Input.txt) Do ( For /f "delims=" %%B in ('FINDSTR /S /I /R "^[^']"%%A *.vb') DO ( echo %%A, %%B >> sample.csv ) )
Summary: hi how can i create a text file using batch file with date and time in name eg testThu 02/08/2007 2300.txt and also i want to read a text file which has list of IP address and execute same command o...
Summary: Hi, can anyone help with this, it's driving me up the wall!! I want to query the network adapter type of a remote computer and then sort the result and place it into another batch file. What I've got ...