VBS Script to get the location of the current script Files attached

Printer-friendly versionSend to friendPDF version

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
AttachmentSizeHitsLast download
Current_Script_Path.vbs149 bytes0Not yet downloaded

Reply

The content of this field is kept private and will not be shown publicly.
Design by
ThemeShark.com - Drupal Themes with Bite!
Drupal Themes
with bite!