Quantcast
Viewing latest article 1
Browse Latest Browse All 10

VBS Script to get the location of the current script

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
AttachmentSize
Image may be NSFW.
Clik here to view.
Current_Script_Path.vbs
149 bytes

Viewing latest article 1
Browse Latest Browse All 10

Trending Articles