Allow tools to reference %HOME from the "Commandline" field

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Allow tools to reference %HOME from the "Commandline" field

Post by Mistrel »

I would like to store my tools in my PureBasic install directory until the "Tools" folder and then reference them using the %HOME variable provided by PureBasic. This variable is available to us for the "Arguments" field but not the "Commandline" field.

For example, I want to add a tool with the following "Commandline":

Code: Select all

%HOME\Tools\Some_Tool.exe
But I can't do this because %HOME isn't resolved by the IDE for this field; I have to hard-code an absolute path.

I would like to be able to use %HOME instead of hard-coding an absolute path as this would allow me to keep valid paths for tools where absolute paths would fail such as running PureBasic from a USB stick.