Command line - setting the current directory relative to the CMD script file 25.01.202108.06.2021 Administration The command will set as the current directory the directory in which the cmd script file itself is located. cd "%~dp0"