运行 .bat 文件的命令 [英] Command to run a .bat file

查看:48
本文介绍了运行 .bat 文件的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让我的 Visual Studio 构建脚本执行一个 .bat 文件,它可以执行一些重要的操作.

I'm trying to make my Visual Studio build script execute a .bat file that does something important.

这是我现在想要做的:

cd "F:- Big Packets -kitterengineCommon" Template.bat

但它不起作用.

我必须这样做才能使它工作:

I have to do this to make it work:

cd "F:- Big Packets -kitterengineCommon"
F:
Template.bat

但这很难添加到 Visual Studio 脚本中.

But this is pretty difficult to add to the Visual Studio script.

如何在一行中完成此操作?

How can I do this in one single line?

推荐答案

可以参考这里:https://ss64.com/nt/start.html

start "" /D F:- Big Packets -kitterengineCommon /W Template.bat

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

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