I have a directory C:\study\runnable with a subdir conf, containing a batch file e.bat and a test.jar file and a configuration file configuration.conf.
test.jar works if it reads configuration.conf. When I launch test.jar it works.
I make a link with the e.bat file that has this inside:
mklink "%~dp0collegamento_test.jar" "%~dp0test.jar"
It creates collegamento_test.jar adjacent to test.jar, and if I launch it with double click, it works. But if I move collegamento_test.jar to Desktop and I launch it, it doesn't work. It starts the application, but the application doesn't find conf directory, so it can't read configuration file.
Do I have to insert something else to the mklink command?
I would like to insert the move command in bat file under the mklink command, and I want lo launch test.jar by the link present in Desktop.