Batch file 在没有打开cmd的情况下,如何打开steam/etc?

Batch file 在没有打开cmd的情况下,如何打开steam/etc?,batch-file,steam,Batch File,Steam,我对编码是新手,我编写了一个批处理程序,试图在启动该程序时使steam、origin、uplay和Battle.net运行。然而,它只启动了他们的CMD,我认为我做错了什么。这是我的节目: @echo off echo starting steam.exe ... start "C:\Program Files (x86)\Steam\Steam.exe" timeout 2 echo starting battle.net.exe ... start "C:\Program Files (x8

我对编码是新手,我编写了一个批处理程序,试图在启动该程序时使steam、origin、uplay和Battle.net运行。然而,它只启动了他们的CMD,我认为我做错了什么。这是我的节目:

@echo off
echo starting steam.exe ...
start "C:\Program Files (x86)\Steam\Steam.exe"
timeout 2
echo starting battle.net.exe ...
start "C:\Program Files (x86)\Steam\Steam.exe"
timeout 2
echo starting origin.exe ...
start "C:\Program Files (x86)\Steam\Steam.exe"
timeout 2
echo starting uplay.exe ...
start "C:\Program Files (x86)\Steam\Steam.exe"
pause
尝试:

@echo off
echo starting steam.exe ...
start "" "C:\Program Files (x86)\Steam\Steam.exe"
timeout 2

如果加引号,则第一个参数为,因此您可以将空引号作为第一个参数。

只需使用以下代码

echo off
color 0b
cls
echo Starting Steam...
start C:\Program Files (x86)\Steam\Steam.exe
timeout 2
echo Starting battle.net.exe
start C:\Program Files (x86)\Steam\Steam.exe
timeout 2
echo Starting Origin...
start C:\Program Files (x86)\Steam\Steam.exe
timeout 2
echo Starting UPlay...
start C:\Program Files (x86)\Steam\Steam.exe
exit

不要在START命令中使用引号,因为它不会识别引号,只会打开一个提升的CMD提示符。也不需要它。

您确定要启动完全相同的命令行四次吗?