我试图使用静默模式的命令提示符运行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.
更多推荐
发布评论