Jump to content

File copy help


Recommended Posts

Posted

Hi, I need some suggestions for solving a file copy problem. I essentially

need to watch multiple directories for new files, and copy any new files to a

common destination. The directories I need to watch are in the same top

level folder, but are in different sub folders. Any 3rdparty tools or

scripting ideas that might make this easy and scalable (the number of source

directories will continue to grow). Thanks.

  • Replies 3
  • Created
  • Last Reply
Guest Newell White
Posted

RE: File copy help

 

 

"phavel" wrote:

> Hi, I need some suggestions for solving a file copy problem. I essentially

> need to watch multiple directories for new files, and copy any new files to a

> common destination. The directories I need to watch are in the same top

> level folder, but are in different sub folders. Any 3rdparty tools or

> scripting ideas that might make this easy and scalable (the number of source

> directories will continue to grow). Thanks.

 

Microsoft >> Windows server 2003 Resource Toolkit >> Robocopy

 

If you want to watch all subfolders in the top-level folder this will be a

one-line script!

--

Regards,

Newell White

Posted

RE: File copy help

 

Yeah I have been playing with robocopy. The problem is that I only need to

watch server subdirectories that are at various locations in the hierarchy.

Will Robocopy take wildcards in the directory path (the directories I need to

watch are all the same name)? If I need to monitor multiple directories they

will each require a new instance of robocopy to be launched, correct? Thanks.

 

"Newell White" wrote:

>

> "phavel" wrote:

>

> > Hi, I need some suggestions for solving a file copy problem. I essentially

> > need to watch multiple directories for new files, and copy any new files to a

> > common destination. The directories I need to watch are in the same top

> > level folder, but are in different sub folders. Any 3rdparty tools or

> > scripting ideas that might make this easy and scalable (the number of source

> > directories will continue to grow). Thanks.

>

> Microsoft >> Windows server 2003 Resource Toolkit >> Robocopy

>

> If you want to watch all subfolders in the top-level folder this will be a

> one-line script!

> --

> Regards,

> Newell White

>

>

Guest Newell White
Posted

RE: File copy help

 

 

"phavel" wrote:

> Yeah I have been playing with robocopy. The problem is that I only need to

> watch server subdirectories that are at various locations in the hierarchy.

> Will Robocopy take wildcards in the directory path (the directories I need to

> watch are all the same name)? If I need to monitor multiple directories they

> will each require a new instance of robocopy to be launched, correct? Thanks.

>

Sorry about delay - outbreak of malware has taken priority.

 

Yes, Robocopy does act on wild cards.

 

I do not think you can use it as a resident monitor.

 

I would run it several times a day as a scheduled task, using wild cards so

that each run locates all the new files.

--

Regards,

Newell White


×
×
  • Create New...