[thelist] WScript.Shell was:(no subject)

ashok at magicalkenya.com ashok at magicalkenya.com
Tue Jun 4 09:39:04 CDT 2002


>It printed out:
>WSHshell.CurrentDirectory: C:\WINNT\system32
>So I got an object but what kind of object?

This gives the current directory of the running process...
What version of WSH are you using ? I hope you are using 5.6 ....

try running the script below to determine your version you should be
running something like 5.6.xx
(I assume you are using Cscript.exe or Wscript.exe to execute your scripts
directly on the server i.e. not remotely..)

WScript.Echo("Version " & ScriptEngineMajorVersion & "." &
ScriptEngineMinorVersion & "." & ScriptEngineBuildVersion)

with version 5.0 the CurrentDirectory property is not available, my guess
is you are running an older version of Wsh, upgrading would solve your
problem...
[or]
you've got some kind of ACL related problem with executing exes on that
directory...(check your permissions..)


ciao

ashok


------
ã$hØk hãRïhîÃñ
http://www.unganisha.org
Disclaimer : The contents of this mail should not be construed as  a "if
you attack me, I'll blast your arse" veiled threat
------






More information about the thelist mailing list