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!"   

source


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -