Batch file issue installing templates in Vista 64

C

Colleen M

Perhaps someone can tell me the best place to post this question.

I have a batch (.bat) file in a winzip executable file that installs Word
templates including a Startup file into the appropriate folders. In a new
Vista 64 PC the startup file doesn't get installed properly because there is
no "Documents and Settings" shortcut and I'm hoping that I can maintain a
single install .exe for XP/Vista/Vista 64. The code in question is:
Copy "c:\Templates\WordStartup.dot" "c:\documents and
settings\%USERNAME%\Application Data\Microsoft\Word\StartUp\WordStartup.dot"

Is there some kind of %????% property I can use in the batch file to pick up
the "documents and settings" part of this code? Or ????
 
C

Colleen M

Never mind, I've realized I just need to add a line or two of code to copy to
either/or using IFEXISTS.

Sorry, I've been sick at home for a week and that's my excuse ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top