如何强制某一个类型的任何文件将与我的程序中打开? [英] how to force that any file of a certain type will open with my program?

查看:218
本文介绍了如何强制某一个类型的任何文件将与我的程序中打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须建立程序,可以打开*。自卫队文件,并显示所有的表&放大器;的数据。



如何强制在我的计算机上的任何* .sdf文件将与我的程序打开?




解决方案

如果你有你的程序部署项目很容易与文件类型编辑器做的:




  1. 选择您的部署项目

  2. 单击在文件类型编辑器
    按钮

  3. 右键点击关于$ b $文件b型目标机器

  4. 添加文件类型

  5. 使用扩展你的
    新的文件类型属性来指定一个或多个
    文件扩展名与程序关联

  6. 在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:

  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.

这篇关于如何强制某一个类型的任何文件将与我的程序中打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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