|
|
|||||||
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 |
||||||||
|
|
|||||||
Well - got some bad news for you. If what you were trying to do was actually supported in Kixtart - your script would have look like this: Code:
BUT - unfortunately, this line here: $objOptions.DefaultFilePath($wdUserTemplatesPath) = "C:\UTemplates" and the other three lines below it ARE NOT supported by Kixtart. In Kixtart, you cant write to a property that has arguments. You can only read them. We've been down this road with the Developer - and he has stated that implementing support for this will not be possible. So - unless you can find another PROPERTY or METHOD that does what you want it to do - think you'll have to stick with VBS for this small bit. |
||||||||
|
|
|||||||
Unfortunate, thanks for answering the query. |
||||||||
|
|
|||||||
however, look here: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General |