从Windows命令行(cm.exe)运行devenv命令 [英] running devenv command from windows command line(cm.exe)

查看:132
本文介绍了从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. :)


这篇关于从Windows命令行(cm.exe)运行devenv命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆