
How to Access WScript properties in Non-Wscript hosting environments?
Hello,
I need to access the WScript.ScriptFullName and Wscript.ScriptName
properties. The problem is, that my scripts aren't hosted by
WScript.exe or CScript.exe so I don't have access to the WScript
object. Is there a way to create it with the CreateObject function? I
have searched the registry, but haven't found a class name for WScript,
just for its derivative objects.
I really need to be able to tell what directory my script is executing
from, because I don't want to have to change the code when moving it
from test to production directories.
Thanks in advance,
Mills Perry
Sent via Deja.com http://www.*-*-*.com/
Before you buy.