How to get the path of the batch script

To get the location of the running script, you can use batch path modifiers:

REM Determine script location for Windows Batch File
SET ScriptDir=%~dp0
ECHO Current script directory is %ScriptDir%


Author: Dev

Full Stack Developer at one of the largest Banks in Canada.