# AgreementOpenExe
**Repository Path**: DaTree/AgreementOpenExe
## Basic Information
- **Project Name**: AgreementOpenExe
- **Description**: 兼容各种浏览器,自定义打开协议,实现在浏览器中调用本机exe程序,并传入参数。
PS:今天美工妹子问我,在一个网页中有2个按钮 一个按钮要跳转到 兼容模式IE6的老站点,另一个要跳转到HTML5的新站点。
第一个思路是,使用双核浏览器,打meta标签来实现浏览器自动选取内核。然并卵。
换一个思路:
联想到迅雷链接可以拉起迅雷mailto可以拉起默认的邮件软件这个特点,在注册表中找到了迅雷的注册表加以改造。调用自己用c#写的程序,在注册表中注册一个copen的自定义协议,并指定路径为自己开发的程序,
使用方式
打开IE并跳转到百度
打开谷歌并跳转到百度
源码上附了 copen.reg
- **Primary Language**: C#
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-11-20
- **Last Updated**: 2022-06-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# AgreementOpenExe
#### Description
兼容各种浏览器,自定义打开协议,实现在浏览器中调用本机exe程序,并传入参数。
PS:今天美工妹子问我,在一个网页中有2个按钮 一个按钮要跳转到 兼容模式IE6的老站点,另一个要跳转到HTML5的新站点。
第一个思路是,使用双核浏览器,打meta标签来实现浏览器自动选取内核。然并卵。
换一个思路:
联想到迅雷链接可以拉起迅雷mailto可以拉起默认的邮件软件这个特点,在注册表中找到了迅雷的注册表加以改造。调用自己用c#写的程序,在注册表中注册一个copen的自定义协议,并指定路径为自己开发的程序,
使用方式
打开IE并跳转到百度
打开谷歌并跳转到百度
源码上附了 copen.reg
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)