|
Answer» I'm a computer lab instructor for a public school. I need to copy a file of "Favorites" off my server and replace the list of "favorites" on each of my 24 machines. Currently, I go into each SYSTEMS "Documents and Settings" under a specific ID, manually select all and then DELETE them. Then I go out to my server, into my special folder I have, select all the sites, copy and paste them back in place.
Needless to say, this is a time hog (but necessary). Can anyone offer any advice on how to create a BAT file that will do this?xcopy - for copying the files. rd /s /q for deleting a non empty directory (you have to thank to sidewinder, I've seen him explaining to someone the problem and I just checked his advice; it works). It MAY make life easier if "Favorites" was set as a global variable.Depending on your permissions and access rights, you could do something like this from your own PC:
Code: [Select]rd "\\LAB01\c$\Documents and Settings\USER\Favorites" /q /s xcopy "%HomeDrive%%HomePath%\Favorites\*.*" "\\LAB01\c$\Documents and Settings\USER\Favorites\" /s /h /k /c /yThe 2 lines above assume you have the PROPER permissions, and are on the same network, the lab computer is named "LAB01", the lab username (ID) is "USER" and that both computers are running WINDOWS 2000/XP/2003. You can replace the "%HomeDrive%%HomePath%\Favorites\" with your own favorites path, or replace the "LAB01" and "USER" with your own information.
You could even create a "FOR" loop to do all 24 computers at one time.
|