How to set the path of a batch script as a start directory

cd /d %~dp0
Set StartInDirectory=%CD%

Reference

http://stackoverflow.com/questions/3827567/how-to-get-the-path-of-the-batch-script-in-windows

Comments

Popular posts from this blog

How to write data into a excel file using vbscript

Format date as yyyy-mm-dd using vbscript