Setting a VS2010 environment variable from a batch file?
问题 I'm using a batch file to define some variables that will be used in my program. I want the batch file to change the environment variable and use it in my code , but it's just now working - the macro is not being changed. to be more specific and clear : I have a program that creates a DLL and sets it's version In the common setting of the project - I created a new macro (Common properties->User macros) : TEST_VER = 5 now I want to add a batch file , that will run in the pre-build command and