Quantcast
Channel: Geeks Hangout - Code
Viewing all articles
Browse latest Browse all 10

VBS Script to get the location of the current script

$
0
0

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
Current_Script_Path.vbs149 bytes

Viewing all articles
Browse latest Browse all 10

Trending Articles