Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

Schedule an XP folder sync to server

I have an XP workstation that runs a certain DOS app.  This DOS app MUST write to a local folder on the workstation.  It creates vast amounts of data so I do not want to use redirection as it is very slow if I try to do that.  Instead, what I am looking to do is have the app work locally and then at a scheduled time at night have the workstation syncronize the local folder somewhere on the server for backup purposes.

I have looked at Offline Files and Briefcase.  Neither seem to be a solution for me.  Does anyone else know of any built-in mechanisms in XP that would allow this?  If not, what are some tools that can be used?
1 Solution
use a batch file with robocopy commands...

just run it as a scheduled task every day at midnight...   that simple

here is a link to help you get that set up

write a bat or vbs script to map the drive of the target directory
on a .bat

net use T: \\server\directory
cd <whereever the file spits out>
copy <filename> T:\filename.whatever
del <filename>
net use T: \\server\directory /d

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

then have task schedular run that bat.
BILJAX is correct, though if synchronising the directory you want to miss out:
del <filename>
This will delete your source files, which presumably isn't the plan.

The method I prefer rather than copy is xcopy - only because you can force xcopy to continue if it encounters errors and is much better at network paths.  In BILJAX's example, I'd replace the copy line with:

xcopy *.* T:\  /E /C /O /Y

Full details of the switches available for xcopy are available at the command prompt by typing xcopy /?
Nice purplepomegranite, I didn't even think about that.
Paracom_IncAuthor Commented:
All of this is great I guess.  I like the robocopy idea better than the xcopy.  I think Robocopy is a little more robust at this.  The only problem with these solutions is how will I do any level of error checking to see if this batch job ran correctly?  

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now