|
Answer» I am a complete novice with batch files. This is what I want to do:
save 3 files to 3 LOCATIONS for 60 users:
1. Normal.dotm to REPLACE users existing Normal.dotm in C:\Documents and Settings\\Application Data\Microsoft\Templates 2. Save a new *.dotx Word 2007 quick style file to: C:\Documents and Settings\\Application Data\Microsoft\QuickStyles 3. Save\overwrite *.qat file to: C:\Documents and Settings\\Local Settings\Application Data\Microsoft\Office
any help woul be cool many thanks Why do you want to do this?
These files are normally not touched, but are targets for an older style macro virusIf you have 60 users it would be easier to set up a roaming profile then have all them stored on C: of each PC... unless you have one PC with 60 users which is simply wrong.I assume the 60 users log into a DOMAIN controller that has a login script? And in #3, I assume "save/overwrite" means "do not back up"?
Assuming that is the case, you can add something like this to the login script: Code: [Select]xcopy "path\to\new\Normal.dotm" "C:\Documents and Settings\%username%\Application Data\Microsoft\Templates\" /Y xcopy "path\to\new\*.dotx" "C:\Documents and Settings\%username%\Application Data\Microsoft\QuickStyles\" /Y xcopy "path\to\new\*.qat" "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Office\" /Y If you NEED to be SURE it only runs once, then you could add an IF EXIST statement to check for a file to see if it has been run already.
|