将文件类型关联到程序 [英] Associate filetype to program

查看:113
本文介绍了将文件类型关联到程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个名为''References.exe''的简单程序,我想用它打开''.rfc''文件.一切正常,但是现在我想添加一个按钮,以将所有''.rfc"文件关联到该程序,因此我不必每次都将其安装在另一个文件上就添加此文件关联电脑.

在VB.net中有简单的方法可以做到这一点吗?

问候,

Wimvr

Hello,

I have a simple program named ''References.exe'' and I want to use it to open ''.rfc''-files. It works ok, but now I want to add a Button to associate all ''.rfc''-files to this program, so I do not have to add this file association every I install it on another computer.

Is there is simple way to do this in VB.net?

Regards,

Wimvr

推荐答案

在这里尝试:系统文件关联 [^ ]
它是用C#语言编写的,但是代码非常简单且易于转换.
如果您有问题,请在此处提供在线翻译: http://www.developerfusion.com /tools/convert/csharp-to-vb/ [ ^ ]
Try here: System File Association[^]
It''s in C#, but the code is pretty trivial and easy to convert.
If you have problems, there is a on-line translator here: http://www.developerfusion.com/tools/convert/csharp-to-vb/[^]


这篇关于将文件类型关联到程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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