I have an application. I compile it using vs2008 team system.
To run this app some certain environmental variables need to be set, such as SYSTEM_MODULE_PATH. My app loads system modules from there. Without this variable it wont run.
So When I profile it, I want to set this variable so that my application runs properly.
Now my question is, Where do I set this variable?
I fixed it when I asked it. But didn’t shared. Here is what I did.
I created a batch (.cmd) file. I set up my environment variable there. Then started Visual Studio using
devenvcommand. Here is the sample batch fileNow Visual Studio opens with some ENV variable loaded.