Windows OS provides GUI to enable or disable offline files feature. For those who want to enable offline files from a batch script, below is a tip how to do this.
Windows XP/Server 2003
In Windows XP offline files can be enabled from command line using the below command.
csccmd.exe /enable
To know where to download this csccmd.exe from read Download csccmd.exe
Windows Vista/ Windows 7
In Windows Vista and Windows 7 we can enable offline files feature by enabling offline files service. This can be done using SC command as mentioned below.
sc config CscService start= auto
You need to reboot the machine to start using offline files feature.
Relevant Posts
Manage XP offline files using csccmd tool
Move Offline files Cache using cachemov.exe tool