{"id":69,"date":"2024-07-17T11:14:10","date_gmt":"2024-07-17T03:14:10","guid":{"rendered":"https:\/\/www.moosoft.cn\/?p=69"},"modified":"2024-07-17T11:18:32","modified_gmt":"2024-07-17T03:18:32","slug":"%e5%b8%b8%e7%94%a8-dos-%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.moosoft.cn\/index.php\/2024\/07\/17\/%e5%b8%b8%e7%94%a8-dos-%e5%91%bd%e4%bb%a4\/","title":{"rendered":"\u5e38\u7528 dos \u547d\u4ee4"},"content":{"rendered":"\n<p>       Windows \u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u53ef\u7528\u7684\u547d\u4ee4\u6570\u91cf\u53ef\u80fd\u56e0\u60a8\u4f7f\u7528\u7684 Windows \u7248\u672c\u800c\u7565\u6709\u4e0d\u540c\u3002\u4f46\u662f\uff0c\u4e00\u822c\u6765\u8bf4\uff0cCMD \u4e2d\u5927\u7ea6\u6709\u00a0<strong>280 \u5230 300 \u4e2a\u5185\u7f6e\u547d\u4ee4\u3002<\/strong>\u8fd9\u5305\u62ec\u7528\u4e8e\u65e5\u5e38\u4efb\u52a1\u7684\u7b80\u5355\u547d\u4ee4\uff08\u4f8b\u5982 Windows CMD \u4e2d\u7684\u590d\u5236\u547d\u4ee4\uff09\u4ee5\u53ca\u7528\u4e8e\u7cfb\u7edf\u8bca\u65ad\u548c\u914d\u7f6e\u7684\u66f4\u9ad8\u7ea7\u5b9e\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>      \u65e0\u8bba\u60a8\u662f\u5e0c\u671b\u4e86\u89e3\u57fa\u7840\u77e5\u8bc6\u7684\u521d\u5b66\u8005\uff0c\u8fd8\u662f\u65e8\u5728\u63d0\u9ad8\u6280\u80fd\u7684\u7ecf\u9a8c\u4e30\u5bcc\u7684\u7528\u6237\uff0c\u6b64 Windows CMD \u547d\u4ee4\u5217\u8868\u6db5\u76d6\u4e86\u6709\u6548\u7ba1\u7406 Windows \u6240\u9700\u7684 38 \u4e2a\u57fa\u672c\u7ba1\u7406\u5458 CMD \u547d\u4ee4\u3002<\/p>\n\n\n\n<p><strong>01 \u6587\u4ef6\u7ba1\u7406Windows CMD\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p>       \u7b2c\u4e00\u7ec4 Windows \u7ba1\u7406\u5458 CMD \u547d\u4ee4\u7b80\u5316\u4e86\u590d\u5236\u3001\u5220\u9664\u548c\u7ba1\u7406\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u7b80\u5316\u4e86\u60a8\u7684\u65e5\u5e38\u64cd\u4f5c\u5e76\u589e\u5f3a\u4e86\u60a8\u7684\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n\n\n\n<p><strong>1\u3001copy<\/strong><br>\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a\u6587\u4ef6\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u4f4d\u7f6e\u3002<br><strong>2\u3001del<\/strong><br>\u5220\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u6587\u4ef6\u3002\u4f8b\u5982\uff0cdel file.txt \u4ece\u5f53\u524d\u76ee\u5f55\u4e2d\u5220\u9664\u201cfile.txt\u201d\u3002<br><strong>3\u3001rename (\u6216 ren)<\/strong><br>\u91cd\u547d\u540d\u6587\u4ef6\u3002\u4f8b\u5982\uff0crename file.txt newfile.txt \u5c06\u6587\u4ef6\u540d\u79f0\u66f4\u6539\u4e3a\u201cnewfile.txt\u201d\u3002<br><strong>4\u3001xcopy<\/strong><br>\u590d\u5236\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u5305\u62ec\u76ee\u5f55\u6811\u548c\u7cfb\u7edf\/\u9690\u85cf\u6587\u4ef6\uff0c\u53ef\u9009\u62e9\u4f7f\u7528\u5404\u79cd\u53c2\u6570\u8fdb\u884c\u66f4\u591a\u63a7\u5236\u3002<br><strong>5\u3001find<\/strong><br>\u5728\u4e00\u4e2a\u6216\u591a\u4e2a\u6587\u4ef6\u4e2d\u641c\u7d22\u6587\u672c\u5b57\u7b26\u4e32\uff0c\u542f\u7528\u7b80\u5355\u7684\u6587\u672c\u8fc7\u6ee4\u4efb\u52a1\u3002<br><strong>6\u3001robocopy<\/strong><br>\u7528\u4e8e\u540c\u6b65\u76ee\u5f55\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u975e\u5e38\u9002\u5408\u5907\u4efd\u3002<br><strong>7\u3001subst<\/strong><br>\u5c06\u672c\u5730\u6587\u4ef6\u5939\u6620\u5c04\u4e3a\u9a71\u52a8\u5668\u53f7\u3002<br><strong>8\u3001attrib<\/strong><br>\u66f4\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u5c5e\u6027\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728 Windows 11 \u4e2d\u4f7f\u7528\u6b64 CMD \u547d\u4ee4\uff1aattrib -h -s -r C:\\path\\to\\folder \u663e\u793a\u9690\u85cf\u6587\u4ef6\u3002<br><strong>9\u3001cipher<\/strong><br>\u52a0\u5bc6\u6216\u89e3\u5bc6\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u3002<\/p>\n\n\n\n<p><strong>02 \u76ee\u5f55\u5bfc\u822a\u548c\u7ba1\u7406 Windows CMD \u547d\u4ee4<\/strong><\/p>\n\n\n\n<p>      \u4f7f\u7528\u8fd9\u4e9b\u57fa\u672c\u7684 Windows CMD \u547d\u4ee4\u53ef\u4ee5\u6709\u6548\u5730\u6d4f\u89c8\u76ee\u5f55\u5e76\u7ba1\u7406\u6587\u4ef6\u5939\u7ed3\u6784\u3002<\/p>\n\n\n\n<p><strong>1\u3001cd<\/strong><br>\u6539\u53d8\u5f53\u524d\u76ee\u5f55\u3002<\/p>\n\n\n\n<p><strong>2\u3001cd \/<\/strong><br>\u5bfc\u822a\u5230\u6839\u76ee\u5f55\u3002<\/p>\n\n\n\n<p><strong>3\u3001dir<\/strong><br>\u663e\u793a\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u7684\u5217\u8868\u3002<\/p>\n\n\n\n<p><strong>4\u3001mkdir \uff08\u6216 md\uff09<\/strong><br>\u521b\u5efa\u4e00\u4e2a\u65b0\u76ee\u5f55\u3002<\/p>\n\n\n\n<p><strong>5\u3001rmdir \uff08\u6216 rd\uff09<\/strong><br>\u5220\u9664\u76ee\u5f55\u3002<\/p>\n\n\n\n<p><strong>6\u3001tree<\/strong><br>\u4ee5\u56fe\u5f62\u65b9\u5f0f\u663e\u793a\u9a71\u52a8\u5668\u6216\u8def\u5f84\u7684\u6587\u4ef6\u5939\u7ed3\u6784\u3002<\/p>\n\n\n\n<p><strong>03 \u7f51\u7edc\u914d\u7f6e\u548c\u8bca\u65ad Windows CMD \u547d\u4ee4<\/strong><\/p>\n\n\n\n<p>      \u7f51\u7edc\u914d\u7f6e\u547d\u4ee4\u5728\u6392\u9664\u6545\u969c\u6216\u8bbe\u7f6e\u65b0\u7f51\u7edc\u8fde\u63a5\u65f6\u975e\u5e38\u6709\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684 Windows \u7ba1\u7406\u5458 CMD \u547d\u4ee4\uff0c\u53ef\u5e2e\u52a9\u60a8\u7cbe\u786e\u5904\u7406\u4e0e\u7f51\u7edc\u76f8\u5173\u7684\u4efb\u52a1\uff1a<\/p>\n\n\n\n<p><strong>1\u3001ipconfig<\/strong><br>\u663e\u793a\u6240\u6709\u5f53\u524d TCP\/IP \u7f51\u7edc\u914d\u7f6e\u503c\u5e76\u5237\u65b0\u52a8\u6001\u4e3b\u673a\u914d\u7f6e\u534f\u8bae (DHCP) \u548c\u57df\u540d\u7cfb\u7edf (DNS) \u8bbe\u7f6e\u3002\u5176\u4ed6 ipconfig \u547d\u4ee4\u53ef\u5728\u6b64\u5904\u83b7\u5f97\u3002<br><strong>2\u3001ping<\/strong><br>\u6d4b\u8bd5\u5230\u8fbe\u7279\u5b9a\u7f51\u7edc\u8bbe\u5907\u7684\u80fd\u529b\u3002<br><strong>3\u3001tracert<\/strong><br>\u8ddf\u8e2a\u6570\u636e\u5305\u5230\u8fbe\u7f51\u7edc\u4e3b\u673a\u7684\u8def\u5f84\uff0c\u5e2e\u52a9\u8bc6\u522b\u7f51\u7edc\u4e2d\u51fa\u73b0\u95ee\u9898\u7684\u4f4d\u7f6e\u3002<br><strong>4\u3001netstat<\/strong><br>\u663e\u793a\u6d3b\u52a8\u8fde\u63a5\u3001\u7aef\u53e3\u3001\u4ee5\u592a\u7f51\u7edf\u8ba1\u4fe1\u606f\u548c IP \u8def\u7531\u8868\u3002<br><strong>5\u3001nslookup<\/strong><br>\u67e5\u8be2DNS\u4ee5\u83b7\u53d6\u57df\u540d\u6216IP\u5730\u5740\u6620\u5c04\u3002<br><strong>6\u3001netsh<\/strong><br>\u5141\u8bb8\u914d\u7f6e\u51e0\u4e4e\u6240\u6709\u65b9\u9762\u7684\u7f51\u7edc\u8bbe\u7f6e\u3002<br><strong>7\u3001arp -a<\/strong><br>\u901a\u8fc7\u67e5\u8be2\u5f53\u524d\u534f\u8bae\u6570\u636e\u6765\u663e\u793a\u5f53\u524d ARP \u6761\u76ee\u3002\u5b83\u663e\u793a IP \u5730\u5740\u548c\u5339\u914d\u7684 MAC \u5730\u5740\u3002<br><strong>8\u3001hostname<\/strong><br>\u663e\u793a\u8ba1\u7b97\u673a\u7684\u7f51\u7edc\u540d\u79f0\uff0c\u6709\u52a9\u4e8e\u7f51\u7edc\u8bc6\u522b\u548c\u6545\u969c\u6392\u9664\u3002<br><strong>9\u3001pathping<\/strong><br>\u7ed3\u5408\u4e86 ping \u548c tracert \u7684\u529f\u80fd\uff0c\u63d0\u4f9b\u6709\u5173\u7f51\u7edc\u8def\u7531\u548c\u5ef6\u8fdf\u7684\u66f4\u8be6\u7ec6\u4fe1\u606f\u3002<br><strong>10\u3001getmac<\/strong><br>\u663e\u793a\u7f51\u5361\u7684MAC\u5730\u5740\u3002<br><strong>11\u3001nbtstat<\/strong><br>\u5e2e\u52a9\u8bca\u65ad TCP\/IP \u8fde\u63a5\u4e0a\u7684 NetBIOS \u5e76\u663e\u793a\u534f\u8bae\u7edf\u8ba1\u4fe1\u606f\u3002<br><strong>12\u3001shutdown \/i<\/strong><br>\u7f51\u7edc\u7ba1\u7406\u7684\u8fdc\u7a0b\u5173\u673a\u5de5\u5177\u3002<\/p>\n\n\n\n<p><strong>04 \u7cfb\u7edf\u4fe1\u606f Windows CMD \u547d\u4ee4<\/strong><\/p>\n\n\n\n<p>      \u6536\u96c6\u5168\u9762\u7684\u7cfb\u7edf\u4fe1\u606f\u5bf9\u4e8e\u5728\u5b89\u5168\u6a21\u5f0f\u4e0b\u8fdb\u884c\u6545\u969c\u6392\u9664\u3001\u7cfb\u7edf\u76d1\u63a7\u4ee5\u53ca\u786e\u4fdd Windows \u8bbe\u7f6e\u4ee5\u6700\u4f73\u65b9\u5f0f\u8fd0\u884c\u81f3\u5173\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684 Windows CMD \u547d\u4ee4\uff0c\u53ef\u8ba9\u60a8\u8bbf\u95ee\u8be6\u7ec6\u7684\u7cfb\u7edf\u4fe1\u606f\uff1a<\/p>\n\n\n\n<p><strong>1\u3001systeminfo<\/strong><br>\u63d0\u4f9b\u7cfb\u7edf\u7684\u8be6\u7ec6\u6982\u8ff0\uff0c\u5305\u62ec\u64cd\u4f5c\u7cfb\u7edf\u914d\u7f6e\u3001\u786c\u4ef6\u8be6\u7ec6\u4fe1\u606f\u548c\u7f51\u7edc\u4fe1\u606f\u3002<br><strong>2\u3001winver<\/strong><br>\u5feb\u901f\u68c0\u67e5\u60a8\u6b63\u5728\u8fd0\u884c\u7684 Windows \u7248\u672c\u3002<br><strong>3\u3001tasklist<\/strong><br>\u5217\u51fa\u6240\u6709\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u53ca\u5176\u8fdb\u7a0b ID (PID)\u3002<br><strong>4\u3001taskkill \/PID [pid_number] \/F<\/strong><br>\u5f3a\u5236\u7ec8\u6b62\u65e0\u54cd\u5e94\u6216\u6d88\u8017\u8fc7\u591a\u8d44\u6e90\u7684\u8fdb\u7a0b\u3002\u5c06 [pid_number] \u66ff\u6362\u4e3a\u4efb\u52a1\u5217\u8868\u4e2d\u7684\u5b9e\u9645 PID\u3002<br><strong>5\u3001wmic<\/strong><br>\u663e\u793a Windows \u7ba1\u7406\u89c4\u8303 (WMI) \u4fe1\u606f\uff0c\u5141\u8bb8\u901a\u8fc7\u5404\u79cd\u5b50\u7c7b\uff08\u4f8b\u5982\uff0cwmic product get name\u3001wmic cpu get name\uff09\u8fdb\u884c\u66f4\u9ad8\u7ea7\u7684\u7cfb\u7edf\u7ba1\u7406\u3002<\/p>\n\n\n\n<p><strong>05 \u78c1\u76d8\u7ba1\u7406Windows CMD\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p>      \u78c1\u76d8\u7ba1\u7406\u547d\u4ee4\u53ef\u8ba9\u60a8\u7075\u6d3b\u5730\u76f4\u63a5\u4ece\u547d\u4ee4\u884c\u7ba1\u7406\u5b58\u50a8\u8d44\u6e90\uff0c\u4e3a\u56fe\u5f62\u7528\u6237\u754c\u9762\u5de5\u5177\u63d0\u4f9b\u5f3a\u5927\u7684\u66ff\u4ee3\u65b9\u6848\u3002\u8ba9\u6211\u4eec\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u603b\u7ed3\u6211\u4eec\u7684 Windows CMD \u547d\u4ee4\u5217\u8868\uff0c\u4ee5\u5e2e\u52a9\u60a8\u4fdd\u6301\u6700\u4f73\u7cfb\u7edf\u6027\u80fd\u548c\u7ec4\u7ec7\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684 Windows CMD \u547d\u4ee4\u53ca\u5176\u529f\u80fd\uff1a<\/p>\n\n\n\n<p><strong>1\u3001diskpart<\/strong><br>\u7ba1\u7406\u78c1\u76d8\u5206\u533a\u7684\u5de5\u5177\u3002<br><strong>2\u3001chkdsk<\/strong><br>\u68c0\u67e5\u78c1\u76d8\u662f\u5426\u6709\u9519\u8bef\u5e76\u4fee\u590d\u6587\u4ef6\u7cfb\u7edf\u3002<br><strong>3\u3001format<\/strong><br>\u4f7f\u7528\u6307\u5b9a\u7684\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\u5316\u78c1\u76d8\u3002<br><strong>4\u3001list disk<\/strong><br>\u663e\u793a\u8ba1\u7b97\u673a\u4e0a\u7684\u6240\u6709\u78c1\u76d8\u3002<br><strong>5\u3001select disk [number]<\/strong><br>\u9009\u62e9\u60a8\u60f3\u8981\u6267\u884c\u64cd\u4f5c\u7684\u78c1\u76d8\u3002<br><strong>6\u3001clean<\/strong><br>\u4ece\u9009\u5b9a\u7684\u78c1\u76d8\u4e2d\u5220\u9664\u6240\u6709\u5206\u533a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows \u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u53ef\u7528\u7684\u547d\u4ee4\u6570\u91cf\u53ef\u80fd\u56e0\u60a8\u4f7f\u7528\u7684 Windows \u7248\u672c\u800c\u7565\u6709\u4e0d\u540c\u3002\u4f46\u662f\uff0c\u4e00\u822c\u6765\u8bf4\uff0cCM<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/www.moosoft.cn\/index.php\/2024\/07\/17\/%e5%b8%b8%e7%94%a8-dos-%e5%91%bd%e4%bb%a4\/\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":2,"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moosoft.cn\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}