{"id":3268,"date":"2020-12-30T10:59:06","date_gmt":"2020-12-30T02:59:06","guid":{"rendered":"https:\/\/www.aoisnow.net\/blog\/?p=3268"},"modified":"2020-12-30T10:59:06","modified_gmt":"2020-12-30T02:59:06","slug":"tont-31753-%e4%b8%ba%e4%bb%80%e4%b9%88%e6%9c%89%e4%b8%a4%e4%bb%bd%e3%80%8e%e8%ae%b0%e4%ba%8b%e6%9c%ac%e3%80%8f%e7%9a%84%e7%a8%8b%e5%ba%8f%e6%96%87%e4%bb%b6%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.aoisnow.net\/blog\/archives\/3268","title":{"rendered":"TONT 31753 \u4e3a\u4ec0\u4e48\u6709\u4e24\u4efd\u300e\u8bb0\u4e8b\u672c\u300f\u7684\u7a0b\u5e8f\u6587\u4ef6\uff1f"},"content":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20060328-17\/?p=31753\" target=\"_blank\" rel=\"noopener\">https:\/\/devblogs.microsoft.com\/oldnewthing\/20060328-17\/?p=31753<\/a><\/p>\n<p>You may have noticed that there\u2019s a copy of Notepad in %windir%\\notepad.exe and another in %windir%\\system32\\notepad.exe.Why two?<\/p>\n<p>\u53ef\u80fd\u4f60\u4f1a\u6ce8\u610f\u5230\u5728\u00a0%windir%\\notepad.exe \u548c\u00a0%windir%\\system32\\notepad.exe \u5206\u522b\u5404\u6709\u4e00\u4efd\u8bb0\u4e8b\u672c\u7684\u7a0b\u5e8f\u6587\u4ef6\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\u5462\uff1f<\/p>\n<p>Compatibility, of course.<\/p>\n<p>\u5f53\u7136\u662f\u4e3a\u4e86\u517c\u5bb9\u6027\u4e86\u3002<\/p>\n<p>Windows 3.0 put Notepad in the Windows directory. Windows NT put it in the System32 directory. Notepad is perhaps the most commonly hardcoded program in Windows. many Setup programs use it to view the Readme file, and you can use your imagination to come up with other places where a program or batch file or printed instructions will hard-code the path to Notepad. In order to be compatible with programs designed for Windows 95, there needs to be a copy of Notepad in the Windows directory. And in order to be compatible with programs designed for Windows NT, there also needs to be a copy in the System32 directory.<\/p>\n<p>Windows 3.0 \u5728 Windows \u76ee\u5f55\u4e0b\u653e\u7f6e\u8bb0\u4e8b\u672c\uff0cWindows NT \u5219\u653e\u5728 System32 \u76ee\u5f55\u4e0b\u9762\u3002\u8bb0\u4e8b\u672c\u5927\u6982\u662f\u88ab\u786c\u7f16\u7801\u5230\u7a0b\u5e8f\u91cc\u6700\u591a\u7684 Windows \u7ec4\u4ef6\u4e4b\u4e00\u4e86\uff0c\u5f88\u591a\u5b89\u88c5\u7a0b\u5e8f\u90fd\u8c03\u7528\u5b83\u6765\u5c55\u793a Readme \u6587\u4ef6\uff0c\u53ef\u60f3\u800c\u77e5\u8fd8\u6709\u591a\u5c11\u7a0b\u5e8f\u3001\u6279\u5904\u7406\u6587\u4ef6\u6216\u5370\u5237\u51fa\u6765\u7684\u64cd\u4f5c\u8bf4\u660e\u91cc\u6709\u786c\u7f16\u7801\u7684\u8bb0\u4e8b\u672c\u7684\u8def\u5f84\u3002\u4e3a\u4e86\u4fdd\u6301\u4e0e\u4e3a Windows 95 \u8bbe\u8ba1\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u517c\u5bb9\u6027\uff0c\u5728 Windows \u76ee\u5f55\u4e0b\u9700\u8981\u6709\u4e00\u4efd\u8bb0\u4e8b\u672c\u7a0b\u5e8f\u7684\u526f\u672c\uff0c\u540c\u6837\uff0c\u4e3a\u4e86\u4fdd\u6301\u4e0e\u4e3a Windows NT \u8bbe\u8ba1\u7684\u7a0b\u5e8f\u7684\u517c\u5bb9\u6027\uff0cSystem32 \u76ee\u5f55\u4e0b\u4e5f\u6709\u4e00\u4efd\u3002<\/p>\n<p>And now that Notepad exists in both places, new programs have a choice of Notepads, and since there is no clear winner, half of them will choose the one in the Windows directory and half will choose the one in the System32 directory, thereby ensuring the continued existence of two copies of Notepad for years to come.<\/p>\n<p>\u5982\u4eca\u8bb0\u4e8b\u672c\u5728\u4e24\u4e2a\u4f4d\u7f6e\u90fd\u6709\u4e00\u5e2d\u4e4b\u5730\uff0c\u65b0\u7f16\u5199\u7684\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u81ea\u7531\u9009\u62e9\u4e86\u3002\u9274\u4e8e\u6ca1\u6709\u54ea\u4e00\u4efd\u662f\u660e\u663e\u7684\u8d62\u5bb6\uff0c\u9009\u62e9 Windows \u76ee\u5f55\u4e0b\u90a3\u4efd\u548c\u9009\u62e9 System32 \u76ee\u5f55\u4e0b\u7684\u90a3\u4efd\u7684\u7a0b\u5e8f\u5927\u6982\u662f\u4e00\u534a\u4e00\u534a\u7684\u51e0\u7387\uff0c\u7531\u6b64\u4fdd\u6301\u4e24\u4efd\u526f\u672c\u5171\u5b58\u7684\u505a\u6cd5\u8fd8\u8981\u4e00\u76f4\u6301\u7eed\u4e0b\u53bb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/devblogs.microsoft.com\/oldnewthing\/2006032 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3268","post","type-post","status-publish","format-standard","hentry","category-tont_history"],"_links":{"self":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/3268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/comments?post=3268"}],"version-history":[{"count":0,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/3268\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/media?parent=3268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/categories?post=3268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/tags?post=3268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}