{"id":5013,"date":"2024-10-02T15:01:09","date_gmt":"2024-10-02T07:01:09","guid":{"rendered":""},"modified":"2024-10-02T15:01:09","modified_gmt":"2024-10-02T07:01:09","slug":"browse for folder_csgodemo\u8fdb\u5ea6\u6761","status":"publish","type":"post","link":"https:\/\/mushiming.com\/5013.html","title":{"rendered":"browse for folder_csgodemo\u8fdb\u5ea6\u6761"},"content":{"rendered":"

1.\u7b80\u4ecb\u4e0e\u4f7f\u7528<\/span><\/h2>\n

Shell.BrowseForFolder\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5bf9\u8bdd\u6846\u8ba9\u7528\u6237\u9009\u62e9\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7136\u540e\u8fd4\u56de\u6240\u9009\u6587\u4ef6\u5939\u7684Folder\u5bf9\u8c61\u3002\u53ef\u4ee5\u5b9e\u73b0\u83b7\u53d6\u6587\u4ef6\u5939\u7684\u7edd\u5bf9\u8def\u5f84\u3002\u7136\u540e\u53ef\u4ee5\u5b9e\u73b0\u6587\u4ef6\u5939\u7684\u76f8\u5173\u64cd\u4f5c\uff0c\u5982\u6587\u4ef6\u5939\u4e0a\u4f20\u7b49\u7b49\u3002<\/p>\n

\u4f7f\u7528\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355
\n <\/p>\n

var Message = \"\u8bf7\u9009\u62e9\u4e0a\u4f20\u6587\u4ef6\u5939\"; var Shell = new ActiveXObject(\"Shell.Application\"); var Folder = Shell.BrowseForFolder(0, Message, 0x0011, 0); \/\/\u8d77\u59cb\u76ee\u5f55\u4e3a\uff1a\u684c\u9762 alert(Folder.Self.Path);<\/code><\/pre>\n

\u6253\u5f00\u7684\u5bf9\u8bdd\u6846\u7684\u5f62\u5f0f\u4e3a<\/p>\n

\"browse <\/p>\n

BrowseForFolder\u7684\u521b\u5efa\u9700\u89814\u4e2a\u53c2\u6570\uff1a<\/p>\n

\u7b2c\u4e00\u4e2a\u4e3a\u5bf9\u8bdd\u6846\u7684\u7a97\u4f53\u53e5\u67c4\uff0c\u4e00\u822c\u8bbe\u7f6e\u4e3a0\uff1b<\/p>\n

\u7b2c\u4e8c\u4e2a\u4e3a\u6253\u5f00\u7a97\u4f53\u7684\u8bf4\u660e\uff0c\u5982\u4e0a\u56fe\u4e2d\u7684\u201c\u8bf7\u9009\u62e9\u4e0a\u4f20\u6587\u4ef6\u5939\u201d\uff1b<\/p>\n

\u7b2c\u4e09\u4e2a\u53c2\u6570\u63a7\u5236\u6253\u5f00\u7684\u7a97\u53e3\u4e2d\u663e\u793a\u7684\u5185\u5bb9\u4ee5\u53ca\u7a97\u4f53\u4e2d\u67d0\u4e9b\u5143\u7d20\u7684\u72b6\u6001\uff0c\u5982\u4e0d\u663e\u793a\u201c\u65b0\u5efa\u6587\u4ef6\u5939\u201d\uff1b<\/p>\n

\u7b2c\u56db\u4e2a\u53c2\u6570\u4e3a\u53ef\u9009\u53c2\u6570\uff0c\u53ea\u8981\u63a7\u5236\u5bf9\u8bdd\u6846\u4e2d\u6587\u4ef6\u7cfb\u7edf\u7684\u6839\u76ee\u5f55\u3002\u7f3a\u7701\u503c\u4e3a\u201c\u684c\u9762\u201d\u3002<\/p>\n

\u7b2c\u4e00\u4e2a\u548c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6bd4\u8f83\u7b80\u5355\uff0c\u4e3b\u8981\u662f\u7b2c\u4e09\u4e2a\u53c2\u6570\u548c\u7b2c\u56db\u4e2a\u53c2\u6570\u60c5\u51b5\u6bd4\u8f83\u591a\u3002\u4ee5\u4e0b\u7f57\u5217\u51fa\u4e86\u6bd4\u8f83\u5e38\u89c1\u7684\u60c5\u51b5\u3002<\/p>\n

\u3010\u6d4b\u8bd5\u73af\u5883\u4e3awindow 7 64 + IE11\u3011<\/p>\n

\u3010\u9ad8\u6e05\u5927\u56fe\u70b9\u51fb\u4e0b\u8f7d\u3011<\/p>\n

=====================================================================================================================<\/p>\n

2.\u7b2c\u4e09\u4e2a\u53c2\u6570\u4f7f\u7528\u3002<\/h2>\n
\n

 \u7b2c\u4e09\u4e2a\u53c2\u6570\u63a7\u5236\u5bf9\u8bdd\u6846\u5143\u7d20\u72b6\u6001\u53ca\u6587\u4ef6\u7cfb\u7edf\u7684\u663e\u793a\u5185\u5bb9\u3002<\/p>\n<\/div>\n

\"browse <\/p>\n

===================================================================================================================== <\/p>\n

===================================================================================================================== <\/p>\n

3.\u7b2c\u56db\u4e2a\u53c2\u6570\u4f7f\u7528<\/strong><\/h2>\n
\n <\/strong> <\/p>\n

 \u7b2c\u56db\u4e2a\u53c2\u6570\u4e3b\u8981\u63a7\u5236\u6587\u4ef6\u7cfb\u7edf\u7684\u6839\u76ee\u5f55<\/p>\n<\/div>\n

<\/p>\n

\"browse<\/p>\n

<\/p>\n

\u5f53\u7b2c\u56db\u4e2a\u53c2\u6570\u4e3a11\u548c22\u65f6\uff0c\u6839\u76ee\u5f55\u90fd\u662f\u7a0b\u5e8f\uff0c\u4f46\u662f\u662f\u4e0d\u540c\u7684\u76ee\u5f55\u3002\u53c2\u6570\u4e3a11\u65f6\u7684\u76ee\u5f55\u4e3aC:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\u4e0b\u7684\u7a0b\u5e8f\u6587\u4ef6\u5939\u3002\u53c2\u657022\u7684\u76ee\u5f55\u4e3aC:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\u4e0b\u7684\u7a0b\u5e8f\u6587\u4ef6\u5939\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"browse for folder_csgodemo\u8fdb\u5ea6\u6761Shell.BrowseForFolder\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5bf9\u8bdd\u6846\u8ba9\u7528\u6237\u9009\u62e9\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7136\u540e\u8fd4\u56de\u6240\u9009\u6587\u4ef6\u5939\u7684Fold...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5013"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5013"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5013\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}