How can I build a user command to run an executable that uses data from a INI file that is located in the same folder of the executable?
If I execute it with the folder not loaded in the focused tab it doesn't work.
user commands rules
Moderators: fgagnon, nikos, Site Mods
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
or run it from a .bat or .cmd file where first line is to change the current (working) directory to the location of the executable:
Code: Select all
cd <fullpathtoexecutable>
<executable> [your usual parameters]
Can I use this code in the User command?fgagnon wrote:or run it from a .bat or .cmd file where first line is to change the current (working) directory to the location of the executable:Code: Select all
cd <fullpathtoexecutable> <executable> [your usual parameters]
That's just a generic approach I used 'way back in DOS daze.
The .bat/cmd would be put on the command line, and parameters passed to it via %1, %2, etc.refs in the .bat/cmd file which would import the explicit params from the command line.
probably needs some syntax mod for use from x2 addressbar or user commands, depending on specific command(s) parameter(s) you are using.
The .bat/cmd would be put on the command line, and parameters passed to it via %1, %2, etc.refs in the .bat/cmd file which would import the explicit params from the command line.
probably needs some syntax mod for use from x2 addressbar or user commands, depending on specific command(s) parameter(s) you are using.