如何强制某一个类型的任何文件将与我的程序中打开? [英] how to force that any file of a certain type will open with my program?
本文介绍了如何强制某一个类型的任何文件将与我的程序中打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须建立程序,可以打开*。自卫队文件,并显示所有的表&放大器;的数据。
如何强制在我的计算机上的任何* .sdf文件将与我的程序打开?
解决方案
如果你有你的程序部署项目很容易与文件类型编辑器做的:
- 选择您的部署项目
- 单击在文件类型编辑器
按钮 - 右键点击关于$ b $文件b型目标机器
- 添加文件类型
- 使用扩展你的
新的文件类型属性来指定一个或多个
文件扩展名与程序关联
- 在Command属性选择
主输出从
应用。
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 open with my program ?
thank's in advance
解决方案
If you have a Deployment project for your program it is easy to do with the File Types Editor:
- Select your deployment project
- Click on the File Types Editor button
- Right click on the "File Types on Target Machine"
- Add File Type
- Use the Extensions property on your new File Type to specify one or more file extensions to be associated with your program.
- In the Command property choose "Primary output" from your application.
这篇关于如何强制某一个类型的任何文件将与我的程序中打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文