[英]Hide console window when executing a .exe with arguments
I've added a "start review" context menu item for .pdf files. 我为.pdf文件添加了“开始审阅”上下文菜单项。
In the registry I've added this as the command: 在注册表中,我将其添加为命令:
"c:\myscript\abc.exe" "%1"
The .exe is a C# application built in C# .NET. .exe是内置在C#.NET中的C#应用程序。
The issue is that whenever I right-click a PDF file and choose the "start review" menu item, I get a black command window opening. 问题是,每当我右键单击PDF文件并选择“开始审阅”菜单项时,都会打开黑色的命令窗口。 How can I get rid of this?
我该如何摆脱呢?
要始终隐藏控制台,可以转到“ 项目”>“属性”,然后将“ 输出”类型更改为Windows应用程序 :
Change the output type to "Windows Application". 将输出类型更改为“ Windows应用程序”。 The following link should help...
以下链接应有帮助...
http://msdn.microsoft.com/en-us/library/vstudio/s3awkzkh(v=vs.100).aspx http://msdn.microsoft.com/en-us/library/vstudio/s3awkzkh(v=vs.100).aspx
Good Luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.