visual studio 2010 - Is it possible to set multiple environment variables in one CMD line statement? -


i have powershell script set execute after msbuild finished. uses environment variables set in postbuild section of build process (build directories , like.) looks this:

  set mage="c:\program files (x86)\microsoft sdks\windows\v7.0a\bin\netfx 4.0 tools\mage.exe"   set appfile=$(targetdir)$(targetname).application   set manifest=$(targetpath).manifest   set cert=$(projectdir)$(targetname).pfx   set projectname=$(targetname)   set configuration=$(configurationname)   set targetdir=$(targetdir)   set teambuild=$false   powershell -file "$(projectdir)postbuild.ps1" 

with each set operating on separate line, still within same cmd instance.

is there way can set multiple variables @ once using 1 line instead of 7?

yes, can pipe commands together:

set a="hi" | set b="bye" 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -