Possible Duplicate:
How do I create a Windows Batch file that does not show the Command Prompt when executed?
I want to create a shortcut on my taskbar that sets an environment variable and then launches a program. Currently my shortcut goes to a .bat file with these lines:
set RESGENTOOLARCHITECTURE=Managed32Bit
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"
but that leaves a CMD window open for the duration of the program that's launched (in this case Visual Studio). Is there a way I can do this without a CMD window opening or at least without it staying open?
I don't want to set the environment variable on my machine generally, just when I run this program.
thanks!