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 ?

link|improve this question

65% accept rate
Will this work on a XP Home edition machine? – iceman Oct 24 '09 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? – DaveParillo Oct 24 '09 at 6:22
1  
Do you want your solution to be free? What are you willing to pay for a 'windows native' solution? – DaveParillo Oct 24 '09 at 6:40
I want similar functionality because I have trouble when explorer crashes – iceman Oct 24 '09 at 9:16
feedback

2 Answers

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.