这是我试图从命令行启动的程序(Star Guard)
我在此目录中打开了一个新的命令提示符进程,并尝试使用命令行启动Star Guard应用程序(因此我可以稍后传入命令行参数)。
然而,当我这样做时,我最终没有启动程序,但我最终在同一目录中启动了一个新的命令提示程序。(输出如下所示)程序在我正常启动时启动(GUI点击)
有谁知道这是什么问题?我首先在Windows中执行ls(OSx)equivalent以确保我有可执行文件的正确文件路径。然后,我使用start命令启动程序以及enclosing引号中的可执行路径以考虑空格。
答案 0 :(得分:2)
List
命令的语法是唯一的,更不用说daft了。如果第一个参数在引号中,则将其解释为窗口标题。
在这种情况下,您根本不需要使用start
,您可以说
start
或
"Star Guard"
如果要使用"Star Guard.exe"
,可能是因为要为GUI应用程序指定start
,或者因为要在新窗口中启动控制台应用程序,则必须包含title参数:
/wait
(标题参数不需要实际指定标题,只需要存在。)
答案 1 :(得分:1)
从OS / 2 Warp帮助
Starts an OS/2 program in another session.
The primary use for START is to automatically start programs at system startup. The
special batch file, STARTUP.CMD, allows you to do this.
To imbed redirectional signals into the command session, enclose the command and
command inputs in quotation marks.
START
"program /K /F
title" /C /B
/N
/PGM /FS /MAX
/WIN /MIN
/PM
/DOS
command
/I command
inputs
Related Commands: RUN
Enter this command without a parameter to start an OS/2 command processor.
If you use the /WIN, /FS, or /PM parameter, your program runs in the foreground session.
If you do not use one of these parameters, you can use the /F parameter to make the
program run in the foreground session.
Make sure that you specify the correct drive and path when you use the START command to
run a batch file with the STARTUP.CMD file. Also, if you plan to redirect I/O using the
START command, enclose the command and command inputs within quotation marks.
You can use START to run full-screen applications or applications running in a window
such as Presentation Manager programs.
START determines the type of application and will run it in the appropriate window or
full-screen session. However, you have the option to override the determined default by
using the /FS, /WIN, /PM, or /I parameter.
You cannot start a batch file (.CMD) with the /PM parameter.