将文件关联到应用程序 [英] Associate a File To a Application

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

问题描述

我正在构建两个程序,一个文本编辑器和一个拉链,但是在这两个程序中,我想将一个文件类型与它们关联起来,但是我怎么能这样做呢?谢谢。

解决方案

您需要编辑注册表: http://support.microsoft.com/kb/257592

您可能需要使用regedit来查看以前的文件关联确定你不会搞砸。
$ b c#注册表基础知识


I'm building two programs, a text editor and a zipper, but in this two programs I want to associate a file type to they, but how can I do this? Thanks.

解决方案

You need to edit the registry: http://support.microsoft.com/kb/257592
You'll probably want to use regedit to see previous file associations, to make sure you don't mess up.

c# registry basics

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

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