简体   繁体   中英

Creating File Extensions for my application

I'm wondering how I can create my own file extension to work with my application. For example, say I wanted to have a ".abc" extension. The full file name example would be "MyFile.abc".
I want the file to behave in a way that when it is double clicked, it will open up in my application, but actually it contains data of a .xml file.

Sorry if this makes little sense, this is completely new to me. I'm using c# in visual studio 2013, and basically my application is an automatic update installer. I want it so when my file with my own extension is selected, my application opens and uses the xml data from it to do the update.

You can create your own files with custom extensions by saving the file with that particular extension. Then what you need is to associate the extension with your application. For this you need to create the instance of FileAssociationInfo .

Check this out System-File-Association

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM