Dan Kegel : cmd: %~dp0 should expand to the directory containing the batch file, not the current directory.