I have in the same folder a .bat and a .exe file.
I couldn’t call the .exe file from the .bat unless I put the full absolute path to it.
Is there a way to don’t specify the path?
I have in the same folder a .bat and a .exe file. I couldn’t
Share
Try calling the
.exewith%~dp0, like this:%~dp0MyProgram.exe.%0contains the full path to the called.batfile.~dpsays to get the drive and path, including trailing\.