{"id":759,"date":"2024-10-30T16:25:11","date_gmt":"2024-10-30T08:25:11","guid":{"rendered":"https:\/\/abytelalala.cn\/?p=759"},"modified":"2024-10-30T16:25:11","modified_gmt":"2024-10-30T08:25:11","slug":"%e6%b3%a8%e5%86%8c%e8%a1%a8%e6%b7%bb%e5%8a%a0url%e8%b0%83%e7%94%a8exe%e6%96%87%e4%bb%b6%ef%bc%8c%e6%94%af%e6%8c%81html%e7%bd%91%e9%a1%b5%e8%b0%83%e7%94%a8","status":"publish","type":"post","link":"https:\/\/abytelalala.cn\/index.php\/2024\/10\/30\/%e6%b3%a8%e5%86%8c%e8%a1%a8%e6%b7%bb%e5%8a%a0url%e8%b0%83%e7%94%a8exe%e6%96%87%e4%bb%b6%ef%bc%8c%e6%94%af%e6%8c%81html%e7%bd%91%e9%a1%b5%e8%b0%83%e7%94%a8\/","title":{"rendered":"\u6ce8\u518c\u8868\u6dfb\u52a0url\u8c03\u7528exe\u6587\u4ef6\uff0c\u652f\u6301html\u7f51\u9875\u8c03\u7528"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">1. \u521b\u5efa\u6ce8\u518c\u8868\u6587\u4ef6 (.reg)<\/h3>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a <code>.reg<\/code> \u6587\u4ef6\uff0c\u901a\u8fc7\u4fee\u6539\u6ce8\u518c\u8868\u4e3a\u5e94\u7528\u7a0b\u5e8f\u914d\u7f6e\u81ea\u5b9a\u4e49 URL \u534f\u8bae\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u5047\u8bbe\u6211\u4eec\u8981\u8c03\u7528\u7684\u7a0b\u5e8f\u4e3a <code>ok3.exe<\/code>\uff0c\u5e76\u4e14\u4f4d\u4e8e <code>C:\\Users\\cust\\Desktop\\dist<\/code> \u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9aa4\uff1a<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728\u684c\u9762\u4e0a\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u91cd\u547d\u540d\u4e3a <code>protocol.reg<\/code>\uff0c\u786e\u4fdd\u6269\u5c55\u540d\u4e3a <code>.reg<\/code>\u3002<\/li>\n\n\n\n<li>\u7528\u8bb0\u4e8b\u672c\u6253\u5f00 <code>protocol.reg<\/code> \u6587\u4ef6\uff0c\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/li>\n\n\n\n<li><code>Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\\Ok3] @=\"Ok3 Protocol\" \"URL Protocol\"=\"\" [HKEY_CLASSES_ROOT\\Ok3\\DefaultIcon] @=\"C:\\\\Users\\\\cust\\\\Desktop\\\\dist\\\\ok3.exe\" [HKEY_CLASSES_ROOT\\Ok3\\shell] @=\"\" [HKEY_CLASSES_ROOT\\Ok3\\shell\\open] @=\"\" [HKEY_CLASSES_ROOT\\Ok3\\shell\\open\\command] @=\"cmd \/c cd \/d \\\"C:\\\\Users\\\\cust\\\\Desktop\\\\dist\\\" &amp;&amp; \\\"C:\\\\Users\\\\cust\\\\Desktop\\\\dist\\\\ok3.exe\\\"\"<\/code><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u6587\u4ef6\u8bf4\u660e\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Ok3<\/code>\uff1a\u8fd9\u662f\u534f\u8bae\u7684\u540d\u79f0\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539\u4e3a\u60a8\u60f3\u8981\u7684\u540d\u5b57\uff0c\u6bd4\u5982 <code>MyApp<\/code>\u3002\u5728\u6d4f\u89c8\u5668\u6216\u5e94\u7528\u4e2d\uff0c\u8c03\u7528\u683c\u5f0f\u5c06\u662f <code>Ok3:\/\/<\/code>\u3002<\/li>\n\n\n\n<li><code>URL Protocol<\/code>\uff1a\u8bbe\u7f6e\u4e3a\u7a7a\u503c\u5373\u53ef\uff0c\u8868\u793a\u8fd9\u662f\u4e00\u4e2a URL \u534f\u8bae\u3002<\/li>\n\n\n\n<li><code>command<\/code>\uff1a\u6307\u5b9a\u4e86\u6267\u884c\u7684\u547d\u4ee4\u884c\u6307\u4ee4\uff0c\u9996\u5148\u5207\u6362\u5230\u76ee\u6807\u7a0b\u5e8f\u6240\u5728\u76ee\u5f55\uff0c\u7136\u540e\u542f\u52a8\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f\uff1a<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u8def\u5f84\u4e2d\u7684\u53cd\u659c\u6760<\/strong>\u9700\u8981\u53cc\u5199\uff08\u5373 <code>\\\\<\/code>\uff09\uff0c\u8fd9\u662f\u6ce8\u518c\u8868\u7684\u8bed\u6cd5\u8981\u6c42\u3002<\/li>\n\n\n\n<li><strong>\u8def\u5f84<\/strong>\u5e94\u6839\u636e\u4f60\u7684 <code>.exe<\/code> \u6587\u4ef6\u6240\u5728\u4f4d\u7f6e\u4fee\u6539\u3002<\/li>\n\n\n\n<li>\u4fdd\u5b58\u5e76\u5173\u95ed <code>protocol.reg<\/code> \u6587\u4ef6\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u6dfb\u52a0\u5230\u6ce8\u518c\u8868<\/h3>\n\n\n\n<p>\u53cc\u51fb <code>protocol.reg<\/code> \u6587\u4ef6\uff0c\u5c06\u914d\u7f6e\u5bfc\u5165\u7cfb\u7edf\u6ce8\u518c\u8868\u3002\u5bfc\u5165\u65f6\u4f1a\u51fa\u73b0\u4e00\u4e2a\u786e\u8ba4\u63d0\u793a\uff0c\u9009\u62e9\u201c\u662f\u201d\u4ee5\u786e\u8ba4\u66f4\u6539\u6ce8\u518c\u8868\u3002\u5bfc\u5165\u6210\u529f\u540e\u4f1a\u6709\u63d0\u793a\uff0c\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u9a8c\u8bc1\u6ce8\u518c\u8868\u914d\u7f6e<\/h3>\n\n\n\n<p>\u5bfc\u5165\u540e\uff0c\u53ef\u4ee5\u624b\u52a8\u6253\u5f00\u6ce8\u518c\u8868\u7f16\u8f91\u5668\uff08<code>Win + R<\/code>\uff0c\u8f93\u5165 <code>regedit<\/code>\uff09\uff0c\u7136\u540e\u68c0\u67e5 <code>HKEY_CLASSES_ROOT<\/code> \u4e0b\u7684 <code>Ok3<\/code> \u952e\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14 <code>command<\/code> \u8def\u5f84\u662f\u5426\u6b63\u786e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u521b\u5efa\u8c03\u7528\u94fe\u63a5\uff08HTML \u793a\u4f8b\uff09<\/h3>\n\n\n\n<p>\u6ce8\u518c\u8868\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u7f51\u9875\u4e0a\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u534f\u8bae\u6765\u8c03\u7528\u8be5\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a <code>test.html<\/code> \u6587\u4ef6\u6765\u6d4b\u8bd5\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">HTML \u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code><code>&lt;!DOCTYPE html>\n&lt;html lang=\"en\">\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;title>\u6d4b\u8bd5 EXE \u8c03\u7528&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;a href=\"Ok3:\/\/\">\u70b9\u51fb\u8c03\u7528 EXE \u6587\u4ef6&lt;\/a>\n&lt;\/body>\n&lt;\/html>\n<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u6d4b\u8bd5<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6253\u5f00 <code>test.html<\/code> \u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u70b9\u51fb\u94fe\u63a5 <code>Ok3:\/\/<\/code>\u3002<\/li>\n\n\n\n<li>\u6d4f\u89c8\u5668\u4f1a\u5f39\u51fa\u63d0\u793a\u6846\uff0c\u8be2\u95ee\u662f\u5426\u5141\u8bb8\u6253\u5f00\u8be5\u5e94\u7528\uff0c\u786e\u8ba4\u540e\u5e94\u8be5\u4f1a\u542f\u52a8 <code>ok3.exe<\/code> \u7a0b\u5e8f\u3002<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u521b\u5efa\u6ce8\u518c\u8868\u6587\u4ef6 (.reg) \u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a .reg \u6587\u4ef6\uff0c\u901a\u8fc7\u4fee\u6539\u6ce8\u518c\u8868\u4e3a\u5e94\u7528\u7a0b\u5e8f\u914d\u7f6e\u81ea\u5b9a\u4e49 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-759","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":2,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts\/759\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts\/759\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/media?parent=759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/categories?post=759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/tags?post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}