Get the script location in MS Dos
Method 1
set currentpath=%~dp0
echo %currentpath%
Method 2
cd /d %~dp0
(Parameter /D allows you to change directory for one on another drive)
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.