Saved Bookmarks
| 1. |
Solve : Checking? |
|
Answer» HELLO, I would like to create a batch file that checks if C:\program\1.txt is present ,if it is check for the presence of the string qbc1 and if the string is present call c:\program\ok.exe. If c:\program\1.txt is not existing or the string qbc1 is not present exit the batch. Thank You AlmnCode: [SELECT]IF NOT EXIST C:\Program\1.txt GOTO End FIND /I "qbc1" C:\Program\1.txt > batTemp.NUL IF ERRORLEVEL 1 GOTO End Call C:\Program\OK.exe DEL batTemp.NUL :End Good luck. 8-)Or in XP simply: FIND /I "qbc1" "C:\Program\1.txt"&&"C:\Program\OK.exe" |
|