openwith获取应用程序名称 [英] openwith get Application name
本文介绍了openwith获取应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
当用户使用浏览openwith窗口并选择一个应用程序以打开文件时,如何获取应用程序名称.
例如
当用户在资源管理器中右键单击文件时,选择openwith,然后从窗口中选择myapp.exe会出现打开方式"窗口.
那么现在是如何从我的C#应用程序中获取应用程序名称(即文件应打开的应用程序.这里的文件名为myapp.exe).
在此先感谢.
Hi All,
How do I get the Application name when user using explore openwith window and select an application to open the file.
For Example
When users right click a file in explore select openwith then open with window will appear from that select myapp.exe .
Then now is how from my c# application I get the Application name(ie application to which the file should open. here expected file name is myapp.exe).
Thanks in Advance.
推荐答案
从
static void Main()
到
static void Main(string [] args)
并检查arg[0]
参数值.
and the check the arg[0]
parameter value.
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx [
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx[^] could help you out.
尝试此链接
C#FileAssociation类 [
try this link
C# FileAssociation Class[^]
这篇关于openwith获取应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文