问题描述
我知道
<a href = 'ymsgr:sendim?contactID'>Send me a message</a>
将启动Yahoo Messenger.
will launch Yahoo Messenger.
我可以创建类似这样的东西来启动MSWord或自己的应用程序吗?
can I create something like this to launch MSWord or my own application?
推荐答案
以下是对您所描述内容的解释: https://stackoverflow.com/a/16586294/4500419
Here is an explanation of what you're describing: https://stackoverflow.com/a/16586294/4500419
在这里您可以找到Microsoft Office的URI规范: https://msdn.microsoft.com/en-us/library/office/dn906146.aspx#sectionSection4
And here you can find the URI specifications for Microsoft Office:https://msdn.microsoft.com/en-us/library/office/dn906146.aspx#sectionSection4
所以,类似
ms-word:ofv|u|http://yoursite.com/document.docx
将在MS Word中以只读模式打开document.docx.
Would open document.docx in read-only mode in MS Word.
这是有关如何在Windows中将您自己的应用程序注册到URI方案的文档: https://msdn.microsoft.com/zh-cn/library/aa767914%28v = vs.85%29.aspx
And here's the doc on how to register your own application to a URI scheme in Windows:https://msdn.microsoft.com/en-us/library/aa767914%28v=vs.85%29.aspx
这篇关于使用HTML启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!