Environment Variables in ShortCut
Posted on 1997-12-15
I need to put an environment variable in a ShortCut's Target" field. In Windows 3.x, I would put (in the "Command Line" field) something like:
where the %USERNAME% is the environment variable. This variable would be expanded into the current value. This was very handy for running programs based on who is currently using the computer, among other things.
Putting this sort of variable in Windows 95's ShortCut -> Target field results in the test "%USERNAME%" being passed to the program. IOW, the variable name is not being replaced.
Any help would be appreciated.