Search found 3 matches

by awd777
22 Mar 2014 06:23
Forum: DOS Batch Forum
Topic: %errorlevel% goto not working
Replies: 6
Views: 3221

Re: %errorlevel% goto not working

Apologies,

My machine seemed to be having a "moment" - works fine :)

Thank you very much for your help.
by awd777
22 Mar 2014 05:59
Forum: DOS Batch Forum
Topic: %errorlevel% goto not working
Replies: 6
Views: 3221

Re: %errorlevel% goto not working

Hi all, Thanks for the replies. Much appreciated. findstr /i "test" "c:\test\Test.txt" if errorlevel 1 (start "" x.exe) else start "" y.exe - This batch file seems to get stuck on a loop of constantly running findstr /i "test" "c:\test\Test.txt&...
by awd777
22 Mar 2014 05:19
Forum: DOS Batch Forum
Topic: %errorlevel% goto not working
Replies: 6
Views: 3221

%errorlevel% goto not working

Hi all, Not particularly advanced in batch file scripting but just trying my hand. Having a bit of an issue with the following script: Echo on findstr /i "test" "c:\test\Test.txt" || if %errorlevel% EQU 1 goto notfound findstr /i "test" "c:\test\Test.txt" || i...