Home > Programming, VBS Scripting > VBS Script: How to find out actual path of running script

VBS Script: How to find out actual path of running script

When you need to find out what path is the running script located at you can use following script:

Dim strFullPath, strPath

strFullPath = WScript.ScriptFullName

strPath = Left(strFullPath, InStrRev(strFullPath,”\”))

Enjoy,

  1. No comments yet.
  1. No trackbacks yet.