windows - Setting and using an environment variable in the same command -
i using windows 7 , want set environment variable , use in same command.
 specifically, want execute following 2 commands simultaneously single command-:  
set mypath="c:\program files (x86)\microsoft visual studio 11.0" %mypath%\vc\vcvarsall.bat     in other words, want windows version of this.
 i've tried far -:
set mypath="c:\program files (x86)\microsoft visual studio 11.0" && cmd.exe /c "%mypath%\vc\vcvarsall.bat"   but isn't working.
 so, there way of doing in windows ?
this can done writing -:
cmd.exe /x /v:on /c "set mypath="c:\program files (x86)\microsoft visual studio 11.0\vc\varsall.bat" && !mypath!"          
Comments
Post a Comment