6
2
I have a batch file that spawns a shell with a modified path with the following command:
cmd /K set PATH=%PATH%;<additional path locations>
I want to set additional environment variables for the spawned shell as well. Is there any way to do that?
1Thanks - that worked like I wanted it to. I put cmd /K at the end because I wanted to use the shell after it had finished executing my commands. – quanticle – 2009-08-15T01:10:22.353
2You can also write a batch that makes all necessary changes to the environment and then simply start your
cmd
instance withcmd /k setvars.cmd
. This is for example how Visual Studio sets up its command prompt. – Joey – 2009-08-15T12:26:13.707