GrodanBoll
Programmer
Hi
I have made som templates for my company that I now would like to copy to the users comuters via vbscript.
But I can't find the variable for words template path (i.e. 'C:\Documents and Settings\Andreas\Application Data\Microsoft\Mallar') i can only get the template folder under the user name (i.e. 'C:\Documents and Settings\Andreas\Templates').
I get the latter path trough
Since the OS and Office package is in English I can of course use
And add it to
But it will fail if there will be someother language in OS or Office package.
I have not found any variable in registry either.
Can I get this variable outside of Word?
Thanks
Grodan
I have made som templates for my company that I now would like to copy to the users comuters via vbscript.
But I can't find the variable for words template path (i.e. 'C:\Documents and Settings\Andreas\Application Data\Microsoft\Mallar') i can only get the template folder under the user name (i.e. 'C:\Documents and Settings\Andreas\Templates').
I get the latter path trough
Code:
WshShell.SpecialFolders("Templates")
Since the OS and Office package is in English I can of course use
Code:
Set WshNetwork = WScript.CreateObject("WScript.Network")
usr = WshNetwork.UserName
Code:
path = "C:\Documents and Settings\" & usr & "\Application Data\Microsoft\Template"
But it will fail if there will be someother language in OS or Office package.
I have not found any variable in registry either.
Can I get this variable outside of Word?
Thanks
Grodan