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 using FIND & IF ERRORLEV
Name: Tollas Date: March 26, 2008 at 10:08:38 Pacific OS: XP/2003 CPU/Ram: Various Product: Windows
Comment:
Attempting to create a batch file that will search data1.txt, then data2.txt for the string "login failed". When found, it will report the first occurance or report if none found. Issue occurs when running program. Even if data1 is empty, it still reports as if "login failed" found.
@echo off FIND /i "login failed" data1.txt IF ERRORLEVEL 0 GOTO ERROR1 FIND /i "login failed" data2.txt IF ERRORLEVEL 0 GOTO ERROR2 GOTO NOERROR
Summary: Hello, I am new at this and I have to create a batch file to find a set of filenames with all the path like C:\Users\pc\Documents\ok.txt, etc. The batch file must say if they exist or not. It seems t...
Summary: How would i go about from executing a batch file that finds your primary drive letter. Its like %SystemDrive%. But how would i execute that so it echo's it back to me? ...
Summary: Hi, I currently have a batch file thats creates a new directory with the current date as its name (in the format YYYYMMDD). Is it possible to have another batch file that finds this directory and copi...