is there a way how to navigate to a program that is in different folder of the parent directory without using full path?
atm I have a batch here:
FOLDER 1\BATCHES\batch1.bat
which uses a program that is located in:
FOLDER 1\PROGRAMS\pro.exe
and my batch looks like this:
"%SYSTEMDRIVE%\Temp\FOLDER 1\PROGRAMS\pro.exe" --input "%SYSTEMDRIVE%\Temp\FOLDER 1\SCRIPT\script.srpt" --output "%SYSTEMDRIVE%\Temp\FOLDER 1\FILES\myfile.x"
as you can see its locked to a place with %SYSTEMDRIVE%\Temp\
so in order to make my script "portable", is there something I could replace that %SYSTEMDRIVE%\Temp\
?
or putting it in another words: I would like to drop all ocurances of %SYSTEMDRIVE%\Temp\
from my batch and replace it with something in a way that if I move my FOLDER 1 wherever in my PC, it will run
..\BATCHES\batch1.bat