How to Access WScript properties in Non-Wscript hosting environments? 
Author Message
 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.



Mon, 30 Dec 2002 03:00:00 GMT  
 How to Access WScript properties in Non-Wscript hosting environments?
WScript is non-creatable.

--
Dominic



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. how to handle com events within a jscript but not a wscript environment

2. Test for presence of WScript Host?

3. wscript.sleep 1 and wscript.sleep 2

4. WScript Host Documentation

5. Set WSHShell = WScript.CreateObject("WScript.Shell")

6. WScript.Quit is not terminating wscript.exe

7. Forcing CScript host with default WScript

8. WScript.WshShell or WScript.Shell ??????

9. Are the WScript properties writeable?

10. Access WScript object from broswer?

11. WScript.Shell with MS Access

12. How to access the Wscript object in HTML ???

 

 
Powered by phpBB® Forum Software