Robocopy is one of the world's great tools.  If it doesn't quite meet your
needs, I have a little vbscript helper script that might be of use.  It will
tell you what's in list 'a' but not list 'b' and it will tell you what's in
list 'b' but not in list 'a'.  Your batch file would have to capture a dir
list for each of the directories you care about.. then it would run the
"in-not-in" script and take actions accordingly.

 

mark, if you want to go this route, let me know...

 

Mike.

its<dot>mike<at>analogy<dot>ca

From: Kennedy, Jim [mailto:[email protected]] 
Sent: Tuesday, January 20, 2009 10:59 am
To: NT System Admin Issues
Subject: RE: Batch file task

 

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/>  ~

Reply via email to