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

 

 

-----------------------------------------------------------------------
Rich Milburn
MCSE, Microsoft MVP - Directory Services
Sr Network Analyst, Field Platform Development
Applebee's International, Inc.

4551 W. 107th St
Overland Park, KS 66207
913-967-2819
----------------------------------------------------------------------
"I am always doing that which I can not do, in order that I may learn how to do it." - Pablo Picasso


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern
Sent: Wednesday, November 09, 2005 12:58 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] scripting file move issue(OT)

 

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
Sent: Wednesday, November 09, 2005 11:30 AM
To: activedirectory
Subject: [ActiveDir] scripting file move issue(OT)

 

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

 


-------APPLEBEE'S INTERNATIONAL, INC. CONFIDENTIALITY NOTICE-------
PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message or any attachments. This information is strictly confidential and may be subject to attorney-client privilege. This message is intended only for the use of the named addressee. If you are not the intended recipient of this message, unauthorized forwarding, printing, copying, distribution, or using such information is strictly prohibited and may be unlawful. If you have received this in error, you should kindly notify the sender by reply e-mail and immediately destroy this message. Unauthorized interception of this e-mail is a violation of federal criminal law. Applebee's International, Inc. reserves the right to monitor and review the content of all messages sent to and from this e-mail address. Messages sent to or from this e-mail address may be stored on the Applebee's International, Inc. e-mail system.


Reply via email to