Not particularly advanced in batch file scripting but just trying my hand. Having a bit of an issue with the following script:
findstr /i "test" "c:\test\Test.txt" || if %errorlevel% EQU 1 goto notfound
findstr /i "test" "c:\test\Test.txt" || if %errorlevel% EQU 0 goto found
I'm probably doing something stupid, but the original "goto" seems not to work?
Basically, what I want to happen is if the file located at c:\test\test.txt contains the word "text" then Y.exe starts, and if it doesn't, then X.exe starts.
Any assistance would be greatly appreciated.