如何在没有一个批处理文件等待启动的应用程序? [英] How to start an application without waiting in a batch file?

查看:127
本文介绍了如何在没有一个批处理文件等待启动的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法没有在批处理文件中等待执行的应用程序?我曾尝试启动命令,但它只是创建了一个新的命令窗口。

Is there any way to execute an application without waiting in batch file? I have tried the start command but it just creates a new command window.

推荐答案

我在做一个猜测在这里,但你的启动调用大概是这样的:

I'm making a guess here, but your start invocation probably looks like this:

start "\Foo\Bar\Path with spaces in it\program.exe"

这将打开一个新的控制台窗口,使用它的标题是\\包含空格\\的Program.exe富\\酒吧\\路径。

This will open a new console window, using "\Foo\Bar\Path with spaces in it\program.exe" as its title.

如果您使用启动的东西,是(或需要)用引号引起来,你需要把空引号作为第一个参数:

If you use start with something that is (or needs to be) surrounded by quotes, you need to put empty quotes as the first argument:

start "" "\Foo\Bar\Path with spaces in it\program.exe"

这是因为启动间$ P $点的第一次报的说法找到的作为窗口标题为一个新的控制台窗口。

This is because start interprets the first quoted argument it finds as the window title for a new console window.

这篇关于如何在没有一个批处理文件等待启动的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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