>>On my machine at home running Win98, the following two lines of code open up a WshNetwork object and a WshShell object respectively:
>>
>>oWshNet = CREATEOBJ('Wscript.network')
>>
>>oWshShell = CREATEOBJ('Wscript.shell')
>>
>>>
dim argv, CRLF, dsObj, dsRoot, rc, usrObj, wshShell, xlFile, xlObj
>>>CRLF = Chr(13) & Chr(10)
>>>dsRoot = "WinNT://LAB"
>>>
>>>set wshShell = Wscript.CreateObject("Wscript.Shell")
>>>set rc = wshShell.Popup("This sample script add users to a NT 4.0 SAM DB." & _
>>> CRLF & "Continue?", _
>>> 60, _
>>> "WSH Sample", _
>>> vbYesNo + vbQuestion)
>>>If rc <> vbYes Then
>>> Wscript.Quit(1)
>>>End If
>>>
>>>set argv = Wscript.Arguments
>>>
>
>Ok, so let's see how you execute the line above, argv = Wscript.Arguments. I don't think you can because you can't get to the wscript object. The wscript and network objects are no problem.
I believe that the arguments collection is accessed from the Wscript.Shell object; I don't have the syntax for the method call here, but I'll put it up whaen I get back home or into my office. It's accessed indirectly like the shortcut/URL shortcut stuff is, by using a method of the shell to create an object reference to the collection.