You are here

Command line file shortcut

1 post / 0 new
newbie33
Offline
Last seen: 7 years 4 months ago
Joined: 2015-03-28 23:00
Command line file shortcut

Hello all,
I would like to run a portable app with arguments using shortcuts but i have some path issues.
I'm on windows 7 and i downloaded a program from https://portableapps.com/apps.
For example :

c:\program\program.exe
c:\program\config.ini
c:\shortcut\aa.lnk
c:\shortcut\bb.exe (mklink /h c:\shortcut\2.exe c:\program\program.exe)
c:\batch\txt.txt
c:\batch\exec.bat
set PATH=%PATH%;c:\shortcut\
c:\program\program.exe txt.txt
(it runs fine, it reads config from program folder and txt from batch folder)
aa.lnk txt.txt
(it reads config and txt from program folder)
bb txt.txt
(it reads config and txt from batch folder)

How can i fix the issues ? Thank you in advance.
Best regards.