SyntaxFix
Write A Post
Hire A Developer
Questions
~dp0 : d=drive, p=path, %0=full path\name of this batch-file.
~dp0
cd /d %~dp0 will change the path to the same, where the batch file resides.
cd /d %~dp0
See for /? or call / for more details about the %~... modifiers. See cd /? about the /d switch.
for /?
call /
%~...
cd /?
/d