tags:

views:

37

answers:

1

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?

+3  A: 

Found it.

WScript.ScriptFullName

strScriptPath = Left(WScript.ScriptFullName,InStrRev(WScript.ScriptFullName,"\"))

Arron