|
You don't need to say
WScript.CreateObject
You can just say
CreateObject
When you double click a vbs file a program called wscript.exe runs it, that's why it works when you double click it, because you are simply asking WScript namespace to call CreateObject.
In NS WScript namespace doesn't exist. But you don't need it.
Just curious, why the second argument "winsock_". Second argument is usually the name of the remote computer you wish to create the instance on. Is this your intention? Otherwise you don't need the second arg either..
-niko
Last edited by nikolatesla20 : 03-04-2004 at 10:48 PM.
|