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
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