从Windows命令行(cm.exe)运行devenv命令

问题描述:

我正在尝试从.bat文件运行以下命令,但未正确执行

comspec%/k C:\ Win16App \ VisualStudio2005 \ Common7 \ Tools \ vsvars32.bat

devenv D:\ pa \ t_BL \ t_91F \ tdf \ t.vcproj/build

.....从命令行无法直接运行,并且可以正常工作.但是,当我将以下命令放入.batch文件时,它无法按预期工作.

Im trying to run the below commands from .bat file but it is not properly executing

comspec% /k C:\Win16App\VisualStudio2005\Common7\Tools\vsvars32.bat

devenv D:\pa\t_BL\t_91F\tdf\t.vcproj /build

.....From command line im able to run directly and it is working fine .But when i put the following commands in .batch file it is not working as intended.

您好,

您不能直接在另一个bat文件中调用Bat文件.

调用时应使用CALL

即在您的主要蝙蝠文件中使用


Hi,

You cannot directly call Bat file inside another bat file.

You should use CALL while calling it

i.e. in your main bat file use


CALL BatFileName.bat






这应该工作. :)






This should work. :)