Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

share|improve this question
    
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

3 Answers 3

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.

share|improve this answer

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

share|improve this answer
1  
The vbs script in the link applies to vista/windows 7, not for xp. –  Giri Jul 19 '12 at 7:46

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

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

share|improve this answer
    
thanks..after 2 years i use win 7 now –  iceman Jul 22 '12 at 6:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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