MSH: Configuring Shell Shortcuts

For project development, we have a special set of location aliases and we need the PATH, LIB and INCLUDE environment variables set up to build against VC 8.0 (VS 2005).  We store the project specific configuration in a script file called BuildEnv.msh.  In order to get this script to automatically load its MSH goodness into a specific shell instead of all MSH shells, we setup a MSH shortcut and configure its target like so:

"C:\Program Files\Microsoft Command Shell\msh.exe" -NoExit -Command . %PROJ_ROOTDIR%\current\Tools\Bin\BuildEnv.msh

The "." is for dot-sourcing the contents of the BuildEnv.msh script into the current scope (shell).

Advertisements
This entry was posted in Monad. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s