darrellblackhawk
Programmer
Hello,
I have two compilers on my system and would like to switch environment variables when one of them starts up.
Visual Studio runs as the normal development environment, but I also have ‘Open WatCom’ to develop older C/C++/Win32/Dos/etc. style applications.
I'd like certain environment variables to be specific to WatCom when it is invoked from the "Start Menu". The ones in question are the LIB, INCLUDE, and Path variables.
Should I just create two batch files to set/reset the environment variables in question before and after I invoke WatCom?
What I would really like, is for the environment variables to be changed when WatCom is invoked and changed back to their original values when it exits without having to run batch programs before and after running WatCom.
Thanks,
Darrell
I have two compilers on my system and would like to switch environment variables when one of them starts up.
Visual Studio runs as the normal development environment, but I also have ‘Open WatCom’ to develop older C/C++/Win32/Dos/etc. style applications.
I'd like certain environment variables to be specific to WatCom when it is invoked from the "Start Menu". The ones in question are the LIB, INCLUDE, and Path variables.
Should I just create two batch files to set/reset the environment variables in question before and after I invoke WatCom?
What I would really like, is for the environment variables to be changed when WatCom is invoked and changed back to their original values when it exits without having to run batch programs before and after running WatCom.
Thanks,
Darrell