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

x
  • 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?
0
Paracom_Inc
Asked:
Paracom_Inc
1 Solution
 
JimsZCommented:
use a batch file with robocopy commands...


just run it as a scheduled task every day at midnight...   that simple
0
 
JimsZCommented:
http://www.ss64.com/nt/robocopy.html

here is a link to help you get that set up
0
 
BILJAXCommented:
easy!


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

0
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.

 
BILJAXCommented:
then have task schedular run that bat.
0
 
purplepomegraniteCommented:
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 /?
0
 
BILJAXCommented:
Nice purplepomegranite, I didn't even think about that.
0
 
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?  
0

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