Environment variable expansion

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
David B. Trout
New Member
Posts: 7
Joined: Wed Jan 06, 2010 4:21 am

Environment variable expansion

Post 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!
"Fish" (David B. Trout)
"Programming today is a race between
software engineers striving to build bigger
and better idiot-proof programs, and the
Universe trying to produce bigger and better
idiots. So far, the Universe is winning"
- Rich Cook

User avatar
psguru
Site Admin
Posts: 1903
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Environment variable expansion

Post by psguru »

Sounds like a good idea; we can certainly explore this for the next version.
psguru
PrestoSoft

Post Reply