At login we set the Word 2000 File Locations to point to our local templates directories.
I found some Vbscript code on the internet that does this perfectly. It works in the background without opening Word and is called from the Kix Login Script. However I would prefer to keep the whole login script Kix based.
I am a newbie to Kix and know nothing about VB coding, so I would appreciate any help to convert the VB.
I have no idea how to handle the setting of the 'objoptions'.
Any help appreciated.
VBscript: On Error Resume Next
Const wdUserTemplatesPath = 2 Const wdWorkgroupTemplatesPath = 3 Const wdAutoRecoverPath = 5 Const wdStartUpPath = 7
Set objWord = CreateObject("Word.Application") Set objOptions = objWord.Options objOptions.DefaultFilePath(wdUserTemplatesPath) = "C:\UTemplates" objOptions.DefaultFilePath(wdWorkgroupTemplatesPath) = "C:\WTemplates" objOptions.DefaultFilePath(wdAutoRecoverPath) = "C:\AutoRecover" objOptions.DefaultFilePath(wdStartUpPath) = "C:\StartUp"
objWord.Quit
|