Copy Files & Directories

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
stuartwells
Newbie
Posts: 1
Joined: Wed Dec 05, 2007 12:59 pm

Copy Files & Directories

Post by stuartwells » Wed Dec 05, 2007 1:06 pm

I need to automate the copying of files from one folder to another on a server over a VPN. Problem is that the directory structure has to be maintained and the directories may or may not exist on the server at the start of the operation:

Scenario 1
Laptop: Program creates Folder A with 3 files in it
Server: Does not have Folder A or any files
Problem: how to create Folder A on server (reading the directory name from the laptop) and copy the files over. I can do the copy files bit but don't know if MS can read the directory name and create it on the server.

Scenario 2
Laptop: Program creates 2 more files in Folder A
Server: Has Folder A but not the two additional files
Problem: How to copy the files to the existing folder A without overwriting the folder and thus deleting the existing ones..

We've been using MS offline folders but this has turned out to be unreliable as the folder size has grown (now 11.1GB) so we're happy to do just a one way sync from the laptop to the server.

Any ideas anyone?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts