Submitted by PhilEddies on Fri, 07/30/2010 - 12:21administrator | 4563 points
Here is just a quick example of how to get the location of the currently running script.
currentScriptPath = Replace(WScript.ScriptFullName, WScript.ScriptName, "")
strLogFile = currentScriptPath & "log.txt"
wscript.echo strLogFile
strLogFile = currentScriptPath & "log.txt"
wscript.echo strLogFile
Attachment | Size |
---|---|
![]() | 149 bytes |