Setting Office 2007 templates

Soldato
Joined
6 May 2009
Posts
20,361
I have this in a script that i want to use at startup, however if word/excel or whatever has not been opened then the folders do not exist.

The script works fine if word has already been opened but not if it hasnt. (It sets the normal.dotm with line spacing and fonts, word.qat sets the quick access tool bar)


@Echo OFF

xCOPY "\\192.168.10.101\NETLOGON\normal.dotm" "%APPDATA%\Microsoft\Templates\normal.dotm" /i /y

XCOPY "\\192.168.10.101\NETLOGON\Word.qat" "%userprofile%\Local Settings\Application Data\Microsoft\Office\Word.qat" /i /y
 
create the directories first and then copy the files over?

Could do a check beforehand to say if the dirs aren't there create them, then do the copy.
 
Assuming you're just using batch, then just use the MD command to create the folder(s) first, it will make them if it can, and should just skip it if they exist already
 
Back
Top Bottom