C# - 让Windows协的随机文件 [英] C# - get Windows association for a random file

查看:160
本文介绍了C# - 让Windows协的随机文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#中,我试图采取由用户选择一些随机的文件,并确定Windows协计划。

In C#, I'm trying to take some random file selected by a user, and determine the Windows Association for the program.

我想用这个来提供一些有用的信息,哪些将运行该程序的用户。

I'd like to use this to provide some helpful information to the user about the program which will run.

这是一个组合工具,其中通用的文件可以被连接到一个记录。

This is a portfolio tool where generic files can be attached to a record.

推荐答案

1851520 是一个类似的问题,并从这个问题 C#AF_FileAssociations 看起来有你所需要的。

1851520 is a similar question, and from that question C# AF_FileAssociations looks to have what you need.

如果做不到这一点,系统文件关联中的$ C $的CProject看起来有code来检索文件关联信息。

Failing that, System File Association on Codeproject looks to have the code to retrieve file association info.

这篇关于C# - 让Windows协的随机文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆