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.
Multiple do commands in for loop
Name: Roger (by lwmo) Date: March 25, 2008 at 13:18:44 Pacific OS: XP CPU/Ram: P4/2GB
Comment:
I need to run multiple DO commands in my FOR /F loop.
for /f "options" %%a in (fileset.txt) do (fc /b /c %source%\%%d if not %errorlevel%==0 call error.bat)
The file compare happens but then I get a line with FC: Invalid Switch. The loop continues to file compare other files. Problem is I cannot check the errorlevel of the file compare and pop up an error.bat file if the file compare found that the files were not the same.
Summary: ok guys, here is a question i have for you, if i want to execute dos commands in c++, what would i use? i'd really appreciate if you could answer this question, as batch files don't do everything i ne...
Summary: Hi, is there any command in Dos for searching a file by specifying a root folder and a part of file name as search string like normal windows search utility. thanx in advance --nagki--- ...