使用命令提示符以静默方式运行exe文件(Run exe file in silent mode using command prompt)

编程入门 行业动态 更新时间:2024-10-25 10:29:54
使用命令提示符以静默方式运行exe文件(Run exe file in silent mode using command prompt)

我试图使用静默模式的命令提示符运行xxx.exe文件。 我在谷歌看到了这个链接: http : //www.powerware.com/Software/lansafe_help/LSHelp424.htm 。

当我运行此命令时:C:>“D:\ xxx.exe”-r -f1“D:\ Test.iss”收到错误: “xxx.exe”无法识别为内部或外部命令可操作程序或批处理文件。

任何机构都可以提出我在哪里做错的想法。

I am trying to run xxx.exe file using command prompt with silent mode. i saw this link in Google: http://www.powerware.com/Software/lansafe_help/LSHelp424.htm.

when i run this command : C:>"D:\xxx.exe" -r -f1"D:\Test.iss" am getting error : "xxx.exe" is not recognized as an internal or external command operable program or batch file.

Can any body give the idea where i am doing mistake.

最满意答案

正如其他人所说,确保你的exe文件的路径是正确的。 您可以在执行前更改exe所在的目录,也可以写出完整路径。

如果您的意思是在屏幕上运行没有任何输出的exe,则通过静默模式,然后只需将输出重定向到文件。

例如,如果您的exe在D:\ myprog \ myprog.exe中,则以下命令将使您的程序以“静默”模式运行:

c:>"D:\myprog\myprog.exe" > "D:\myprog\output.txt"

上面的示例将输出转储到output.txt文件中。

As others said, make sure your path to your exe file is correct. You can change directory where exe is before execution or write out the full path.

By silent mode if you mean to run exe without any output on screen, then simply redirect the output to a file.

E.g. if your exe is in D:\myprog\myprog.exe, then following command will make your program run in "silent" mode:

c:>"D:\myprog\myprog.exe" > "D:\myprog\output.txt"

Above example will dump output into output.txt file.

更多推荐

本文发布于:2023-07-29 20:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令提示符   方式   文件   exe   Run

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!