Tom, Suggest you use FSO.MoveFile or
Folder.MoveHere in _vbscript_ to do the moving rather than xcopy. You could
enumerate files, have a for each loop with a counter, and move files until the
counter is divisible by 1000 (or = 1000 and reset), sleep for 15-20 seconds, and
continue. After your sleep you could check that the destination folder is
empty and if not then sleep again. I’m assuming some familiarity with
the _vbscript_ I’m talking about, if you need more specifics just ask. Rich ----------------------------------------------------------------------- From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern the source dirs take awhile to refill as they are being filled by
xcopy. it copies about 4gig a batch. The destination dir empties in about 10-15secs. also the destinantion dir can only handle 1000 files at a time before
being emptied. thanks
On 11/9/05, Coleman,
Hunter <[EMAIL PROTECTED]>
wrote: Yes, this is scriptable. Perl vs VBS?
Either will work, so I'd go with whatever you are most comfortable with. How quickly are your source directories
going to refill, and how quickly are is your destination directory going to get
cleaned up by the different process? From: [EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] On
Behalf Of Tom Kern I'm having a problem trying to figure out how to script or batch file
something. I want to move N number of files from a series of sudirectories to
another dir and then wait to make sure a different process that is running will
remove the files i just moved from the other dir, before moving more N number
of files from a series of subdirectories to that dir and continuing the process
in this manner until the seires of subdirectories are empty. can i script something like this? would perl be better at this than _vbscript_? can i do this with Robocopy? I read the docs and don't really think so
but maybe someone else more familliar with it would know.... thanks
|
- RE: [ActiveDir] scripting file move issue(OT) Rich Milburn
- Re: [ActiveDir] scripting file move issue(OT) Tom Kern
- RE: [ActiveDir] scripting file move issue(OT) Coleman, Hunter
- Re: [ActiveDir] scripting file move issue(OT) Tom Kern
- RE: [ActiveDir] scripting file move issue(OT) Brian Desmond