Page 1 of 1

Environment variable expansion

Posted: Sun Jan 18, 2015 6:16 pm
by David B. Trout
On Windows you can use environment variables on the command line, in links (shortcuts), in the registry, etc, but unfortunately not in ExamDiff Pro.

For example, in the "Tools" branch of the "Options" dialog you can enter the path to your preferred "External text editor" and/or to your "External binary editor". Unfortunately however, you need to always use a full/absolute path such as:

Code: Select all

C:\Windows\system32\notepad.exe
I would much prefer if I could instead use something like:

Code: Select all

%windir%\system32\notepad.exe
where "windir" is the name of the environment variable to be automatically expanded via the ExpandEnvironmentStrings function.

I personally have my own set of environment variables defined that point to various private (custom) tools directories, and would like to use those environment variable values in the path to my preferred "External text editor". This allows me the freedom to seamlessly move my tools directory to wherever I want whenever I want by simply updating the associated environment variable that points there (which all of my own custom tools are already designed to use).

But if I do that then ExamDiff Pro doesn't work because it's pointing to the wrong place!

Is there any chance of adding this minor feature to EDP?

Thanks, and keep up the great work!

EDP totally ROCKS!

Re: Environment variable expansion

Posted: Sun Jan 18, 2015 6:37 pm
by psguru
Sounds like a good idea; we can certainly explore this for the next version.