you need to use
chdir /D %~dp0
to be sure that also the drive letter is correct
Type: Posts; User: ralfiii
you need to use
chdir /D %~dp0
to be sure that also the drive letter is correct
This unfortunately doesn't wok if the batch file was located on a different drive.
(e.g. on drive D: - chdir changes directory but not the drive letter)