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?
Simply add another variable on a new line using
will create a new variable called
You could also combine them into a single line as follows:
This way, you could avoid having to modify the original script and run it like so: