开发者

Creating File Associations in VB.NET?

开发者 https://www.devze.com 2023-01-09 02:23 出处:网络
How would one go about associating a file type with his application? I know how to read the command line arguments but I am not sure how I can \"register\" the file extension with Windows. Furthermore

How would one go about associating a file type with his application? I know how to read the command line arguments but I am not sure how I can "register" the file extension with Windows. Furthermore, my application is a stand-alone executable, so how would I keep Windows up-to-date on the location of my program?

I did a fair amount of searching and all I could find were old articles that didn't explain everything. How can I create file ass开发者_开发技巧ociations to a stand-alone executable in VB.NET?


Everything is handled by the registry. If you want to make your program self-register it's current location when run see this example.

http://www.codeproject.com/KB/dotnet/System_File_Association.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消