I have a script.vbs that can be anywhere on a clients PC and it needs to create a directory relative to its location. Is there a way for the executing .vbs to know where it is running?
views:
37answers:
1
+3
A:
Found it.
WScript.ScriptFullName
strScriptPath = Left(WScript.ScriptFullName,InStrRev(WScript.ScriptFullName,"\"))
Arron
2010-01-15 00:08:33