You can pipe the output to a file and then use find to check for specific test. Find will give an errorlevel if it finds the text vs if it doesn't.
...Tim From: m b [mailto:[email protected]] Sent: Tuesday, January 20, 2009 10:45 AM To: NT System Admin Issues Subject: Batch file task I need to create a section of a batch file that will determine whether a folder has had files added to it or not, and then perform one of two actions. I was thinking of doing a dir > filename, to get something like dirlist.txt & oldlist.txt and doing a file compare on the two text files, but the "fc" command doesn't seem to give me any output I can use within the batch file. I was hoping it would give me something in "errorlevel", but it doesn't. In the end, I'll have a batch file that runs constantly, and each loop it will look at a couple of folders. If there's something in folder 1, it will perform action 1, and if there's something in folder 2, it will perform action 2. Thanks in advance Mark ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
