vcvar32.bat problem

This is a discussion on vcvar32.bat problem within the C++ Programming forums, part of the General Programming Boards category; I need to be able to use nmake through the command line to compile make files. All the documentation that ...

vcvar32.bat problem

I need to be able to use nmake through the command line to compile make files. All the documentation that I have consulted has suggested that I use vcvar32.bat in the Bin folder. However when I use it if gives me an "Out of environment space" error.

good question. the command.exe program is the command shell, and it wipes out any previous enviroment variables, like the path (which tells where often used programs are). i'll reply if i find anything

actually, that probably won't work. instead, create a shortcut of command.com in the windows directory. take that shortcut, right click, go to properties, then the memory tab, then change the initial enviroment size from auto to 4096. then double click that whenever you want the command prompt.

Except that does not fix my problem with having to run vcvars32.bat from the prompt everytime I need to use nmake to compile a makefile.

What I think I need is something that will automatically set the eviroment variables then goes to "C:\Program Files\Microsoft Visual Studio\VC98\Bin" and run the batch file. Then brings itself back to "C:\".