I was wondering if there is a command in C++ that will do the same as a dos set command? I need to set some global variables for an exe that I am spawning, is there a way to do this short of running a batch file?