I am trying to use the WScript Object model to create .lnk files and to open applications on the client side.
I have tried using javascript and vbscript e.g
var shell = new ActiveXObject( "WScript.Shell" );
but I get an error "Microsoft JScript runtime error: Automation server can't create object"
Any help would be gratefully received
Thanks
Matt
04-01-2005 at 03:43 PM
|
humberto Level: VB Lord Registered: 13-01-2005 Posts: 246
Re: Help with WScript
what about
Set Shell = CreateObject("WScript.Shell")
objWShell.CurrentDirectory = "C:\yourdir\"
I recently got a new PC and guess what, it no longer works. I have installed the last version of the Scripting but to no avail. I am getting the same automation error as I was when I first logged the message.
Again any pointers would be gratefully received