Issue about startup arguments

Topics: User Forum
Sep 25, 2006 at 7:36 AM
If I changed as below,

//string argument = "/k \"\"" + installDir + "vsvars32.bat\"";
string argument = "/k c:\Tools\Bin\AppBuildEnv.bat";

"AppBuildEvn.bat" already included "vsvars32.bat".

after some customized configuration, however, it didn't work in same way as it did in a common console. Some aliases didn't work.

Strange!

Sep 25, 2006 at 7:48 AM
For example, after run the shell,

*********************************************************************
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
Loading Buddhist specific DOSKEY aliases

c:\Program Files\Microsoft Visual Studio 8\Common7\IDE>buildapp

c:\Program Files\Microsoft Visual Studio 8\Common7\IDE>'buildapp' is not recognized as an internal or external command, operable program or batch file.
Coordinator
Sep 29, 2006 at 10:26 PM
As VSCmdShell redirects stdin and stdout from cmd.exe process, some programs do not work correctly with it. For example ftp.exe is one of them as it directly uses console buffer.

Doskey also seems to be using console buffer directly thus wouldn't work with VSCmdShell.