1

I want to write a bat script to have the same functionality as mentioned in this [article][1]

[1]: http://www.microsoft.com/windowsxp/using/mobility/learnmore/offlinefiles.mspx .

What would be the steps/commands used for fast syncs ?

4
  • Will this work on a XP Home edition machine?
    – iceman
    Oct 24, 2009 at 5:54
  • Good question! So that I understand the question - you're looking for a script that adjusts some specified folders desktop.ini so that it will get synchronised for offline use? Oct 24, 2009 at 6:22
  • 1
    Do you want your solution to be free? What are you willing to pay for a 'windows native' solution? Oct 24, 2009 at 6:40
  • I want similar functionality because I have trouble when explorer crashes
    – iceman
    Oct 24, 2009 at 9:16

3 Answers 3

1

Doing that in a batch script would be fairly challenging to say the least.

Why not use rsync -avz? It's free at least, and rsync is quite fast, as it performs differential backups.

0

Doing this in a .bat file would indeed be challenging. But, why not create a batch file to run the .vbs? Would that suit your purpose? If so, create a blank .bat file and put the following inside:

cscript NameOfVBSFile.vbs /

Where NameOfVBSFile.vbs is the... name of the VBS file you want to run and where are the switches you need for the VBS to do its job.

As for the .vbs, try one of these:

Sync entire cache: http://blogs.technet.com/b/filecab/archive/2007/04/26/cscsyncall-vbs-sync-the-entire-offline-files-cache.aspx

Sync specific UNC path: replace last part of URL with cscsync-vbs-sync-a-particular-unc-path.aspx (new user, so superuser.com says I can only post one URL as some sort of anti-spam control)

Best of luck, Chris

1
  • 1
    The vbs script in the link applies to vista/windows 7, not for xp.
    – Giri
    Jul 19, 2012 at 7:46
0

'csccmd /fill' can be used to sync offline marked shares.

More info on csccmd is here: http://support.microsoft.com/kb/884739

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .