简体   繁体   English

从Windows运行带有标志的可执行文件

[英]Running an executable with flags from windows

I have an exectutable file, lets say "program.exe" 我有一个exectutable文件,让我们说“program.exe”

if I run it from a command line I can give it some optional flags and the output will be according to these options. 如果我从命令行运行它,我可以给它一些可选的标志,输出将根据这些选项。 for example "program.exe -m" 例如“program.exe -m”

Is it possible to run the program from windows by clicking it, and giving it a flag? 是否可以通过单击它从Windows运行该程序,并给它一个标志?

你可以创建一个exe的快捷方式,或者创建一个批处理文件,无论是你可以双击它的方式,它将使用你指定的参数运行exe。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM