开发者

how to force that any file of a certain type will open with my program?

开发者 https://www.devze.com 2023-01-23 02:52 出处:网络
i have build program that can open *.sdf files and show all the table & the data. how to force that any *.sdf file in my computer will o开发者_开发知识库pen with my program ?

i have build program that can open *.sdf files and show all the table & the data.

how to force that any *.sdf file in my computer will o开发者_开发知识库pen with my program ?

thank's in advance


You can not. You can associate your program with a specific file extension, but you can not FORCE the user to use your program to open a file. Even registration entries are easy to change (open with in the context menu).


If you have a Deployment project for your program it is easy to do with the File Types Editor:

  1. Select your deployment project
  2. Click on the File Types Editor button
  3. Right click on the "File Types on Target Machine"
  4. Add File Type
  5. Use the Extensions property on your new File Type to specify one or more file extensions to be associated with your program.
  6. In the Command property choose "Primary output" from your application.


You need to associate extension with your program: Registering the Extension

0

精彩评论

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

关注公众号