In batch there is a command %~dp0 which mean change the directory to the script directory, for example: Batch file is in desktop, if you use %~dp0
%~dp0