首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何从命令行启动此程序?

如何从命令行启动此程序?
EN

Stack Overflow用户
提问于 2015-06-20 22:36:02
回答 2查看 2.2K关注 0票数 1

这是我试图从命令行(星卫兵)发射的程序。

我在这个目录中打开了一个新的命令提示符进程,并试图用命令行启动start应用程序(这样以后我就可以传递命令行参数)。

然而,当我这样做的时候,我没有启动程序,但是我最终在同一个目录下启动了一个新的命令提示符进程。(输出如下所示)当我正常启动程序时,程序会很好地启动。

有人知道问题出在哪里吗?我首先在Windows中执行ls(OSx) 等价物,以确保我为可执行文件提供了正确的文件路径。然后,我使用开始命令启动程序,同时使用引号中的可执行路径围封来说明空格。

EN

Stack Overflow用户

发布于 2015-06-21 02:07:07

来自OS/2经纱帮助

代码语言:javascript
运行
复制
 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. 
票数 1
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30959524

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档