What actions do you need to do? Robocopy will watch folders and run forever...if you just need to do a copy of the contents or changes to those folders it will work for you.
From: m b [mailto:[email protected]] Sent: Tuesday, January 20, 2009 1:45 PM 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/> ~
