{"id":7905,"date":"2026-04-17T09:54:29","date_gmt":"2026-04-17T01:54:29","guid":{"rendered":"https:\/\/www.xinyixx.com\/?p=7905"},"modified":"2026-04-17T09:54:29","modified_gmt":"2026-04-17T01:54:29","slug":"windows-cmd","status":"publish","type":"post","link":"https:\/\/www.xinyixx.com\/index.php\/2026\/04\/17\/windows-cmd\/","title":{"rendered":"Windows CMD \u5b8c\u5168\u6307\u5357\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u6218"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u4ec0\u4e48\u662f CMD\uff1f\u4e3a\u4ec0\u4e48\u8981\u5b66\u5b83\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f88\u591a\u4eba\u5bf9 Windows \u7684\u5370\u8c61\u662f\u9f20\u6807\u70b9\u4e00\u70b9\u5c31\u80fd\u641e\u5b9a\u4e00\u5207\u3002\u90a3 CMD \u8fd9\u4e2a\u9ed1\u8272\u7a97\u53e3\uff0c\u5230\u5e95\u6709\u6ca1\u6709\u7528\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b54\u6848\u662f\uff1a<strong>\u975e\u5e38\u6709\u7528\uff0c\u800c\u4e14\u67d0\u4e9b\u573a\u666f\u4e0b\u662f\u552f\u4e00\u9009\u62e9\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CMD\uff08Command Prompt\uff0c\u547d\u4ee4\u63d0\u793a\u7b26\uff09\u662f Windows \u7cfb\u7edf\u5185\u7f6e\u7684\u547d\u4ee4\u884c\u89e3\u91ca\u5668\uff0c\u672c\u8d28\u4e0a\u662f\u4f60\u548c\u64cd\u4f5c\u7cfb\u7edf\u76f4\u63a5\u5bf9\u8bdd\u7684\u4e00\u4e2a\u901a\u9053\u3002\u56fe\u5f62\u754c\u9762\uff08GUI\uff09\u505a\u7684\u6bcf\u4e00\u4e2a\u64cd\u4f5c\uff0c\u80cc\u540e\u90fd\u6709\u5bf9\u5e94\u7684\u547d\u4ee4\u5728\u6267\u884c\uff0cCMD \u53ea\u662f\u628a\u8fd9\u4e2a\u8fc7\u7a0b\u66b4\u9732\u51fa\u6765\uff0c\u8ba9\u4f60\u53ef\u4ee5\u76f4\u63a5\u63a7\u5236\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b66 CMD \u6709\u51e0\u4e2a\u5b9e\u9645\u4ef7\u503c\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4e00\uff0c<strong>\u901f\u5ea6<\/strong>\u3002\u6279\u91cf\u91cd\u547d\u540d\u4e00\u767e\u4e2a\u6587\u4ef6\uff0c\u7528\u9f20\u6807\u8981\u70b9\u5230\u624b\u8f6f\uff1b\u4e00\u884c CMD \u547d\u4ee4\uff0c\u4e00\u79d2\u641e\u5b9a\u3002\u5176\u4e8c\uff0c<strong>\u81ea\u52a8\u5316<\/strong>\u3002\u628a\u5e38\u7528\u64cd\u4f5c\u5199\u6210 <code>.bat<\/code> \u6279\u5904\u7406\u811a\u672c\uff0c\u53cc\u51fb\u8fd0\u884c\uff0c\u7701\u6389\u91cd\u590d\u52b3\u52a8\u3002\u5176\u4e09\uff0c<strong>\u7ef4\u4fee\u80fd\u529b<\/strong>\u3002\u7cfb\u7edf\u5d29\u6e83\u3001\u84dd\u5c4f\u3001\u9a71\u52a8\u635f\u574f\uff0c\u5f88\u591a\u65f6\u5019\u56fe\u5f62\u754c\u9762\u90fd\u6253\u4e0d\u5f00\uff0c\u4f46\u8fdb PE \u7cfb\u7edf\u80fd\u5f00 CMD\uff0c\u9760\u547d\u4ee4\u628a\u7cfb\u7edf\u6551\u56de\u6765\u3002\u5176\u56db\uff0c<strong>\u770b\u61c2\u6280\u672f\u6587\u6863<\/strong>\u3002\u5f00\u53d1\u8005\u6559\u7a0b\u3001\u8fd0\u7ef4\u624b\u518c\u91cc\u5927\u91cf\u51fa\u73b0 CMD \u547d\u4ee4\uff0c\u61c2\u5f97\u57fa\u7840\u624d\u80fd\u770b\u61c2\u3001\u8ddf\u4e0a\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u4f55\u6253\u5f00 CMD\uff1f\u4e09\u79cd\u65b9\u5f0f\u90fd\u8981\u8bb0\u4f4f\uff1a<code>Win+R<\/code> \u8f93\u5165 <code>cmd<\/code> \u56de\u8f66\uff08\u666e\u901a\u6743\u9650\uff09\uff1b\u5728\u641c\u7d22\u680f\u8f93\u5165 <code>cmd<\/code>\uff0c\u53f3\u952e\u9009&#8221;\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c&#8221;\uff08\u7ba1\u7406\u5458\u6743\u9650\uff0c\u5927\u591a\u6570\u7cfb\u7edf\u64cd\u4f5c\u9700\u8981\u8fd9\u4e2a\uff09\uff1b\u5728\u4efb\u610f\u6587\u4ef6\u5939\u7684\u5730\u5740\u680f\u8f93\u5165 <code>cmd<\/code> \u56de\u8f66\uff0c\u76f4\u63a5\u5728\u5f53\u524d\u8def\u5f84\u6253\u5f00\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u7f51\u7edc\u8bca\u65ad\uff1a\u4e94\u5206\u949f\u6392\u67e5\u65ad\u7f51\u95ee\u9898<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f51\u7edc\u51fa\u95ee\u9898\u65f6\uff0c\u5927\u591a\u6570\u4eba\u7684\u64cd\u4f5c\u662f\u91cd\u542f\u8def\u7531\u5668\u6216\u8005\u8054\u7cfb\u8fd0\u8425\u5546\u3002\u4f46\u5176\u5b9e\u7528 CMD \u505a\u4e00\u904d\u7f51\u7edc\u8bca\u65ad\uff0c\u4e09\u5206\u949f\u5c31\u80fd\u5b9a\u4f4d\u95ee\u9898\u51fa\u5728\u54ea\u4e00\u6bb5\uff0c\u7701\u53bb\u5927\u91cf\u6c9f\u901a\u6210\u672c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ping\uff1a\u6700\u57fa\u7840\u7684\u7f51\u7edc\u63a2\u9488<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>ping<\/code> \u547d\u4ee4\u5411\u76ee\u6807\u53d1\u9001\u6570\u636e\u5305\uff0c\u7136\u540e\u7b49\u5bf9\u65b9\u56de\u5e94\uff0c\u4ece\u800c\u6d4b\u91cf\u8fde\u901a\u6027\u548c\u5ef6\u8fdf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;ping www.baidu.com &nbsp; &nbsp; &nbsp;  \u57fa\u7840\u6d4b\u8bd5<br>&nbsp;ping -t 8.8.8.8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6301\u7eed ping\uff0c\u89c2\u5bdf\u662f\u5426\u95f4\u6b47\u6027\u65ad\u8fde<br>&nbsp;ping -n 20 192.168.1.1 &nbsp;  \u53d1\u9001 20 \u4e2a\u5305\uff0c\u7edf\u8ba1\u4e22\u5305\u7387<br>&nbsp;ping -l 1000 \u76ee\u6807IP &nbsp; &nbsp; &nbsp; \u53d1\u9001\u5927\u5305\uff0c\u6d4b\u8bd5\u5e26\u5bbd\u627f\u8f7d\u80fd\u529b<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e22\u5305\u7387\u8d85\u8fc7 5% \u5c31\u5c5e\u4e8e\u5f02\u5e38\u3002\u5ef6\u8fdf\uff08time=\uff09\u56fd\u5185\u4e00\u822c\u5728 10-50ms \u6b63\u5e38\uff0c\u8d85\u8fc7 200ms \u5c31\u4f53\u611f\u5361\u987f\u660e\u663e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tracert\uff1a\u8def\u7531\u8ffd\u8e2a\uff0c\u7cbe\u51c6\u5b9a\u4f4d\u5361\u987f\u8282\u70b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>tracert<\/code> \u662f trace route \u7684\u7f29\u5199\uff0c\u5b83\u4f1a\u63a2\u6d4b\u6570\u636e\u4ece\u4f60\u7684\u7535\u8111\u51fa\u53d1\uff0c\u7ecf\u8fc7\u6bcf\u4e00\u8df3\u8def\u7531\u5668\uff0c\u6700\u7ec8\u5230\u8fbe\u76ee\u6807\u7684\u5b8c\u6574\u8def\u5f84\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;tracert www.baidu.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u51fa\u6bcf\u4e00\u884c\u4ee3\u8868\u4e00\u8df3\uff0c\u663e\u793a\u8be5\u8282\u70b9\u7684 IP \u548c\u5ef6\u8fdf\u3002\u54ea\u4e00\u8df3\u7a81\u7136\u5ef6\u8fdf\u98d9\u9ad8\uff0c\u6216\u8005\u663e\u793a <code>* * *<\/code>\uff08\u8d85\u65f6\uff09\uff0c\u95ee\u9898\u5c31\u51fa\u5728\u90a3\u6bb5\u94fe\u8def\u4e0a\u3002\u524d\u51e0\u8df3\u662f\u672c\u5730\u8def\u7531\u5668\uff0c\u4e2d\u95f4\u662f\u8fd0\u8425\u5546\u9aa8\u5e72\u7f51\uff0c\u672b\u5c3e\u51e0\u8df3\u662f\u76ee\u6807\u670d\u52a1\u5668\u4fa7\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pathping\uff1aping \u4e0e tracert \u7684\u5408\u4f53\u5347\u7ea7\u7248<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u4e00\u4e2a\u5f88\u591a\u4eba\u4e0d\u77e5\u9053\u7684\u547d\u4ee4\u3002<code>pathping<\/code> \u5148\u50cf tracert \u4e00\u6837\u63a2\u6d4b\u8def\u7531\uff0c\u518d\u5411\u6bcf\u4e2a\u8282\u70b9\u5206\u522b ping \u4e00\u6bb5\u65f6\u95f4\uff0c\u8f93\u51fa\u6bcf\u8df3\u7684\u5b9e\u9645\u4e22\u5305\u7387\u7edf\u8ba1\uff0c\u6bd4\u5355\u7eaf\u7684 tracert \u66f4\u51c6\u786e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pathping www.baidu.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7a0d\u6162\u4e00\u4e9b\uff0c\u9700\u8981\u7b49\u4e00\u4e24\u5206\u949f\uff0c\u4f46\u6570\u636e\u66f4\u53ef\u9760\uff0c\u7279\u522b\u9002\u5408\u6392\u67e5&#8221;\u65f6\u597d\u65f6\u574f&#8221;\u7684\u7f51\u7edc\u95ee\u9898\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">netstat\uff1a\u770b\u6e05\u4f60\u7684\u7535\u8111\u5728\u548c\u8c01&#8221;\u8bf4\u8bdd&#8221;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>netstat<\/code> \u663e\u793a\u5f53\u524d\u6240\u6709\u6d3b\u8dc3\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u662f\u6392\u67e5\u7aef\u53e3\u5360\u7528\u548c\u6392\u67e5\u53ef\u7591\u7f51\u7edc\u8bf7\u6c42\u7684\u5229\u5668\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;netstat -ano &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \u67e5\u770b\u6240\u6709\u8fde\u63a5\uff0c\u542b PID\uff08\u8fdb\u7a0b ID\uff09<br>&nbsp;netstat -ano | findstr ESTABLISHED  \u53ea\u770b\u5df2\u5efa\u7acb\u7684\u8fde\u63a5<br>&nbsp;netstat -ano | findstr \":8080\" &nbsp; &nbsp;  \u67e5\u8c01\u5360\u7528\u4e86 8080 \u7aef\u53e3<br>&nbsp;netstat -b &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \u663e\u793a\u6bcf\u4e2a\u8fde\u63a5\u5bf9\u5e94\u7684\u7a0b\u5e8f\u540d\uff08\u9700\u7ba1\u7406\u5458\uff09<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u62ff\u5230\u5360\u7528\u7aef\u53e3\u7684 PID \u540e\uff0c\u7528 <code>tasklist | findstr PID\u53f7<\/code> \u53ef\u4ee5\u67e5\u5230\u662f\u54ea\u4e2a\u7a0b\u5e8f\uff0c\u518d\u7528 <code>taskkill<\/code> \u5173\u6389\u5b83\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">arp\uff1a\u67e5\u770b\u5c40\u57df\u7f51\u7684 IP \u4e0e MAC \u5bf9\u5e94\u8868<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;arp -a &nbsp; &nbsp; &nbsp;  \u67e5\u770b ARP \u7f13\u5b58\u8868<br>&nbsp;arp -d &nbsp; &nbsp; &nbsp;  \u6e05\u7a7a ARP \u7f13\u5b58\uff08\u89e3\u51b3\u90e8\u5206\u7f51\u7edc\u51b2\u7a81\u95ee\u9898\uff09<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c40\u57df\u7f51\u5185\u51fa\u73b0 IP \u51b2\u7a81\u3001\u7f51\u7edc\u88ab\u52ab\u6301\u65f6\uff0c<code>arp -a<\/code> \u80fd\u5e2e\u4f60\u68c0\u67e5\u662f\u5426\u6709\u5f02\u5e38\u6761\u76ee\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">netsh\uff1a\u7f51\u7edc\u914d\u7f6e\u7684&#8221;\u4e07\u80fd\u6273\u624b&#8221;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>netsh<\/code>\uff08Network Shell\uff09\u662f Windows \u6700\u5f3a\u5927\u7684\u7f51\u7edc\u914d\u7f6e\u547d\u4ee4\uff0c\u529f\u80fd\u6781\u5176\u4e30\u5bcc\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;netsh wlan show profiles &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \u67e5\u770b\u6240\u6709\u4fdd\u5b58\u8fc7\u7684 WiFi \u540d\u79f0<br>&nbsp;netsh wlan show profile name=\"WiFi\u540d\" key=clear \u67e5\u770b WiFi \u5bc6\u7801\uff08\u660e\u6587\uff09<br>&nbsp;netsh interface ip set address \"\u672c\u5730\u8fde\u63a5\" static 192.168.1.100 255.255.255.0 192.168.1.1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \u624b\u52a8\u8bbe\u7f6e\u9759\u6001 IP<br>&nbsp;netsh interface ip set dns \"\u672c\u5730\u8fde\u63a5\" static 8.8.8.8<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \u624b\u52a8\u8bbe\u7f6e DNS<br>&nbsp;netsh winsock reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u91cd\u7f6e\u7f51\u7edc\u534f\u8bae\u6808\uff08\u89e3\u51b3\u5947\u602a\u7f51\u7edc\u6545\u969c\u7684\u6740\u624b\u950f\uff09<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>netsh winsock reset<\/code> \u540e\u9700\u8981\u91cd\u542f\uff0c\u5b83\u80fd\u4fee\u590d\u5927\u91cf&#8221;\u7f51\u7edc\u786c\u4ef6\u6ca1\u95ee\u9898\u4f46\u5c31\u662f\u4e0a\u4e0d\u4e86\u7f51&#8221;\u7684\u60c5\u51b5\uff0c\u6bd4\u91cd\u88c5\u7cfb\u7edf\u7b80\u5355\u4e00\u4e07\u500d\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u6587\u4ef6\u4e0e\u76ee\u5f55\uff1a\u6bd4\u8d44\u6e90\u7ba1\u7406\u5668\u66f4\u9ad8\u6548\u7684\u64cd\u4f5c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">xcopy \u4e0e robocopy\uff1a\u771f\u6b63\u7684\u6587\u4ef6\u590d\u5236\u5de5\u5177<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u666e\u901a\u7684 <code>copy<\/code> \u547d\u4ee4\u53ea\u80fd\u590d\u5236\u5355\u4e2a\u6587\u4ef6\u3002\u8981\u590d\u5236\u6574\u4e2a\u76ee\u5f55\u7ed3\u6784\uff0c\u9700\u8981\u7528 <code>xcopy<\/code> \u6216\u66f4\u73b0\u4ee3\u7684 <code>robocopy<\/code>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;xcopy C:\\\u6e90\u6587\u4ef6\u5939 D:\\\u76ee\u6807\u6587\u4ef6\u5939 \/e \/h \/i<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u53c2\u6570\u8bf4\u660e\uff1a<code>\/e<\/code> \u590d\u5236\u6240\u6709\u5b50\u76ee\u5f55\uff08\u542b\u7a7a\u76ee\u5f55\uff09\uff0c<code>\/h<\/code> \u5305\u542b\u9690\u85cf\u6587\u4ef6\uff0c<code>\/i<\/code> \u5982\u679c\u76ee\u6807\u4e0d\u5b58\u5728\u5219\u521b\u5efa\u76ee\u5f55\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>robocopy<\/code> \u662f\u4f01\u4e1a\u7ea7\u5de5\u5177\uff0c\u529f\u80fd\u66f4\u5f3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;robocopy C:\\A D:\\B \/mir \/log:sync.log \/xf *.tmp<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/mir<\/code> \u955c\u50cf\u6a21\u5f0f\uff0c\u76ee\u6807\u4f1a\u548c\u6e90\u4fdd\u6301\u5b8c\u5168\u4e00\u81f4\uff08\u4f1a\u5220\u9664\u76ee\u6807\u4e2d\u591a\u4f59\u7684\u6587\u4ef6\uff09\uff1b<code>\/log<\/code> \u628a\u65e5\u5fd7\u5199\u5165\u6587\u4ef6\uff1b<code>\/xf<\/code> \u6392\u9664\u6307\u5b9a\u683c\u5f0f\u7684\u6587\u4ef6\u3002\u9002\u5408\u505a\u5b9a\u671f\u5907\u4efd\u3001\u6587\u4ef6\u5939\u540c\u6b65\uff0c\u65ad\u70b9\u7eed\u4f20\u4e5f\u4e0d\u6015\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">findstr\uff1aCMD \u91cc\u7684\u6587\u5b57\u641c\u7d22\u5f15\u64ce<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>findstr<\/code> \u7c7b\u4f3c Linux \u7684 <code>grep<\/code>\uff0c\u53ef\u4ee5\u5728\u6587\u4ef6\u4e2d\u641c\u7d22\u5305\u542b\u7279\u5b9a\u5185\u5bb9\u7684\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">findstr \/i \"error\" app.log            \u4e0d\u533a\u5206\u5927\u5c0f\u5199\u641c\u7d22 error<br>findstr \/s \/i \"password\" C:\\*.txt     \u9012\u5f52\u641c\u7d22\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709 txt \u6587\u4ef6<br>netstat -ano | findstr \"LISTENING\"    \u7ed3\u5408\u7ba1\u9053\uff0c\u8fc7\u6ee4 netstat \u8f93\u51fa<br>type log.txt | findstr \/n \"fail\"      \u8f93\u51fa\u542b\u884c\u53f7\u7684\u5339\u914d\u7ed3\u679c<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/i<\/code> \u5ffd\u7565\u5927\u5c0f\u5199\uff0c<code>\/s<\/code> \u641c\u7d22\u5b50\u76ee\u5f55\uff0c<code>\/n<\/code> \u663e\u793a\u884c\u53f7\uff0c<code>\/r<\/code> \u652f\u6301\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u7528 <code>|<\/code> \u7ba1\u9053\u7b26\u914d\u5408\u5176\u4ed6\u547d\u4ee4\uff0c\u5a01\u529b\u500d\u589e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">attrib\uff1a\u6587\u4ef6\u5c5e\u6027\u7ba1\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u65f6\u6587\u4ef6\u88ab\u8bbe\u4e3a\u53ea\u8bfb\u6216\u9690\u85cf\uff0c\u666e\u901a\u65b9\u5f0f\u65e0\u6cd5\u5220\u9664\u6216\u4fee\u6539\uff0c\u8fd9\u65f6 <code>attrib<\/code> \u51fa\u9a6c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">attrib +h secret.txt      \u8bbe\u4e3a\u9690\u85cf<br>attrib -r -h -s C:\\*.dll  \u53bb\u6389\u6587\u4ef6\u7684\u53ea\u8bfb\u3001\u9690\u85cf\u3001\u7cfb\u7edf\u5c5e\u6027<br>attrib -r -h -s \/s \/d C:\\\u67d0\u76ee\u5f55   \u9012\u5f52\u5904\u7406\u6574\u4e2a\u76ee\u5f55<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u67d0\u4e9b\u75c5\u6bd2\u4f1a\u628a\u6587\u4ef6\u5939\u4f2a\u88c5\u6210\u6587\u4ef6\u3001\u628a\u6587\u4ef6\u8bbe\u4e3a\u7cfb\u7edf\u5c5e\u6027\u85cf\u8d77\u6765\uff0c<code>attrib<\/code> \u80fd\u628a\u5b83\u4eec\u8fd8\u539f\u51fa\u6765\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fc\uff1a\u6587\u4ef6\u5185\u5bb9\u6bd4\u5bf9<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">fc file1.txt file2.txt        \u5bf9\u6bd4\u4e24\u4e2a\u6587\u672c\u6587\u4ef6<br>fc \/b image1.jpg image2.jpg   \u4e8c\u8fdb\u5236\u5bf9\u6bd4<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u9002\u5408\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u6709\u6ca1\u6709\u88ab\u6539\u52a8\u3001\u4e24\u4efd\u6587\u6863\u7684\u5dee\u5f02\u5728\u54ea\u91cc\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u6279\u5904\u7406\u811a\u672c\uff1a\u8ba9 CMD \u771f\u6b63\u81ea\u52a8\u5316<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6279\u5904\u7406\uff08Batch\uff09\u662f CMD \u6700\u5f3a\u5927\u7684\u529f\u80fd\u2014\u2014\u628a\u4e00\u7cfb\u5217\u547d\u4ee4\u5199\u8fdb <code>.bat<\/code> \u6587\u4ef6\uff0c\u4e00\u952e\u6267\u884c\uff0c\u5b9e\u73b0\u81ea\u52a8\u5316\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u57fa\u7840\u7ed3\u6784<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">@echo off<br>REM \u8fd9\u662f\u6ce8\u91ca\uff0c@echo off \u8ba9\u811a\u672c\u8fd0\u884c\u65f6\u4e0d\u663e\u793a\u6bcf\u6761\u547d\u4ee4\u672c\u8eab<br><br>set srcDir=C:\\Documents<br>set dstDir=D:\\Backup<br><br>echo \u5f00\u59cb\u5907\u4efd...<br>xcopy %srcDir% %dstDir% \/e \/h \/i \/y<br>echo \u5907\u4efd\u5b8c\u6210\uff01<br>pause<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@echo off<\/code> \u5173\u95ed\u547d\u4ee4\u56de\u663e\uff0c\u8ba9\u8f93\u51fa\u66f4\u5e72\u51c0\u3002<code>set<\/code> \u5b9a\u4e49\u53d8\u91cf\uff0c\u7528 <code>%\u53d8\u91cf\u540d%<\/code> \u5f15\u7528\u3002<code>pause<\/code> \u6682\u505c\u7b49\u5f85\u6309\u952e\uff0c\u9632\u6b62\u7a97\u53e3\u4e00\u95ea\u800c\u8fc7\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">for \u5faa\u73af\uff1a\u6279\u91cf\u5904\u7406\u6587\u4ef6<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">@echo off<br>for %%i in (C:\\Logs\\*.log) do (<br>    echo \u5904\u7406\u6587\u4ef6\uff1a%%i<br>    findstr \/i \"error\" %%i &gt;&gt; error_summary.txt<br>)<br>echo \u6c47\u603b\u5b8c\u6210\uff0c\u7ed3\u679c\u5728 error_summary.txt<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6bb5\u811a\u672c\u628a\u6240\u6709 <code>.log<\/code> \u6587\u4ef6\u4e2d\u542b\u6709&#8221;error&#8221;\u7684\u884c\u6c47\u603b\u5230\u4e00\u4e2a\u6587\u4ef6\u91cc\u3002\u5728\u6279\u5904\u7406\u4e2d\u5faa\u73af\u53d8\u91cf\u7528 <code>%%i<\/code>\uff08\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u7528 <code>%i<\/code>\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>for \/l<\/code> \u53ef\u4ee5\u505a\u6570\u5b57\u5faa\u73af\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">for \/l %%n in (1,1,10) do echo \u7b2c %%n \u6b21<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">if \u6761\u4ef6\u5224\u65ad<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">@echo off<br>if exist \"C:\\config.ini\" (<br>    echo \u914d\u7f6e\u6587\u4ef6\u5df2\u5b58\u5728<br>) else (<br>    echo \u914d\u7f6e\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u521b\u5efa\u4e2d...<br>    copy default.ini C:\\config.ini<br>)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>if exist<\/code> \u5224\u65ad\u6587\u4ef6\u662f\u5426\u5b58\u5728\uff1b<code>if errorlevel 1<\/code> \u5224\u65ad\u4e0a\u4e00\u6761\u547d\u4ee4\u7684\u9000\u51fa\u7801\uff1b<code>if \"%1\"==\"\"<\/code> \u5224\u65ad\u53c2\u6570\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">timeout \u4e0e choice\uff1a\u7b49\u5f85\u4e0e\u4ea4\u4e92<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">timeout \/t 30 \/nobreak        \u7b49\u5f85 30 \u79d2\u540e\u7ee7\u7eed\uff0c\u4e0d\u5141\u8bb8\u4e2d\u65ad<br>choice \/c YN \/m \"\u662f\u5426\u7ee7\u7eed\uff1f\"<br>if errorlevel 2 goto end      \u6309 N \u8df3\u8f6c\u5230 :end \u6807\u7b7e<br>echo \u7528\u6237\u9009\u62e9\u4e86\u7ee7\u7eed<br>:end<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e24\u4e2a\u547d\u4ee4\u8ba9\u6279\u5904\u7406\u811a\u672c\u53d8\u5f97\u66f4\u53cb\u597d\uff0c\u53ef\u4ee5\u5b9e\u73b0&#8221;\u5b9a\u65f6\u6267\u884c&#8221;\u548c&#8221;\u7528\u6237\u786e\u8ba4&#8221;\u7684\u4ea4\u4e92\u903b\u8f91\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u4e2a\u5b9e\u7528\u7684\u81ea\u52a8\u5907\u4efd\u811a\u672c\u793a\u4f8b<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">@echo off<br>set src=C:\\Users\\%USERNAME%\\Documents<br>set dst=D:\\Backups\\%date:~0,4%%date:~5,2%%date:~8,2%<br><br>md %dst% 2&gt;nul<br>robocopy %src% %dst% \/e \/xf *.tmp \/log:D:\\Backups\\backup.log<br>echo \u5907\u4efd\u5b8c\u6210\uff1a%dst%<br>timeout \/t 3<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u811a\u672c\u6bcf\u6b21\u8fd0\u884c\u65f6\uff0c\u4ee5\u5f53\u5929\u65e5\u671f\u4e3a\u6587\u4ef6\u5939\u540d\u521b\u5efa\u5907\u4efd\uff08\u6bd4\u5982 <code>20250418<\/code>\uff09\uff0c\u6392\u9664\u4e34\u65f6\u6587\u4ef6\uff0c\u5e76\u8bb0\u5f55\u65e5\u5fd7\u3002\u914d\u5408 Windows \u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u8bbe\u7f6e\u5b9a\u65f6\u8fd0\u884c\uff0c\u5c31\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u81ea\u52a8\u5907\u4efd\u65b9\u6848\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u6ce8\u518c\u8868\u4e0e\u7ec4\u7b56\u7565\uff1a\u7cfb\u7edf\u6df1\u5c42\u914d\u7f6e<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">reg \u547d\u4ee4\uff1a\u547d\u4ee4\u884c\u64cd\u4f5c\u6ce8\u518c\u8868<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\u518c\u8868\u662f Windows \u7cfb\u7edf\u914d\u7f6e\u7684\u6570\u636e\u5e93\uff0c<code>reg<\/code> \u547d\u4ee4\u8ba9\u4f60\u4e0d\u7528\u6253\u5f00 <code>regedit<\/code> \u56fe\u5f62\u754c\u9762\u5c31\u80fd\u8bfb\u5199\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion<br>                                       \u67e5\u8be2\u952e\u4e0b\u6240\u6709\u503c<br>reg query HKCU\\Software \/s \/f \"Chrome\" \u9012\u5f52\u641c\u7d22\u542b Chrome \u7684\u952e<br>reg add HKCU\\Software\\MyApp \/v Version \/t REG_SZ \/d \"1.0\"<br>                                       \u6dfb\u52a0\u5b57\u7b26\u4e32\u503c<br>reg delete HKLM\\SOFTWARE\\BadApp \/f     \u5f3a\u5236\u5220\u9664\u952e<br>reg export HKCU\\Software D:\\reg_backup.reg   \u5bfc\u51fa\u5907\u4efd<br>reg import D:\\reg_backup.reg                 \u8fd8\u539f\u5907\u4efd<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u6539\u6ce8\u518c\u8868\u524d\u52a1\u5fc5\u5148 <code>reg export<\/code> \u505a\u5907\u4efd\uff0c\u64cd\u4f5c\u5931\u8bef\u53ef\u4ee5\u8fd8\u539f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">gpupdate \u4e0e gpresult\uff1a\u7ec4\u7b56\u7565\u7ba1\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4f01\u4e1a\u57df\u73af\u5883\u91cc\uff0cIT \u7ba1\u7406\u5458\u901a\u8fc7\u7ec4\u7b56\u7565\u7edf\u4e00\u7ba1\u63a7\u6240\u6709\u7535\u8111\u7684\u914d\u7f6e\u3002<code>gpupdate \/force<\/code> \u5f3a\u5236\u7acb\u5373\u62c9\u53d6\u5e76\u5e94\u7528\u6700\u65b0\u7684\u7ec4\u7b56\u7565\uff0c\u800c\u4e0d\u7528\u7b49\u5f85\u9ed8\u8ba4\u7684 90 \u5206\u949f\u5237\u65b0\u5468\u671f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gpupdate \/force<br>gpresult \/r                       \u67e5\u770b\u5f53\u524d\u751f\u6548\u7684\u7b56\u7565\uff08\u6587\u672c\u683c\u5f0f\uff09<br>gpresult \/h C:\\gp_report.html     \u751f\u6210 HTML \u683c\u5f0f\u7684\u8be6\u7ec6\u7b56\u7565\u62a5\u544a<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5373\u4fbf\u5728\u975e\u57df\u73af\u5883\uff08\u4e2a\u4eba\u7535\u8111\uff09\uff0c\u7ec4\u7b56\u7565\u4e5f\u80fd\u7528\u4e8e\u4fee\u6539\u5f88\u591a\u6df1\u5c42\u7cfb\u7edf\u8bbe\u7f6e\uff0c<code>gpedit.msc<\/code> \u662f\u56fe\u5f62\u754c\u9762\uff0c<code>gpupdate<\/code> \u662f\u547d\u4ee4\u884c\u5237\u65b0\u5de5\u5177\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u7cfb\u7edf\u4fe1\u606f\u4e0e\u7535\u6e90\u7ba1\u7406<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">wmic\uff1aWMI \u7684\u547d\u4ee4\u884c\u63a5\u53e3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WMIC\uff08Windows Management Instrumentation Command-line\uff09\u53ef\u4ee5\u67e5\u8be2\u51e0\u4e4e\u6240\u6709\u786c\u4ef6\u548c\u7cfb\u7edf\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wmic cpu get name,numberofcores,loadpercentage    CPU \u578b\u53f7\u3001\u6838\u5fc3\u6570\u3001\u5f53\u524d\u8d1f\u8f7d<br>wmic memorychip get capacity,speed                \u5185\u5b58\u5bb9\u91cf\u4e0e\u9891\u7387<br>wmic diskdrive get model,size,status              \u786c\u76d8\u578b\u53f7\u4e0e\u72b6\u6001<br>wmic bios get serialnumber                        \u4e3b\u677f\u5e8f\u5217\u53f7\uff08\u62a5\u4fdd\u67e5\u7528\uff09<br>wmic os get caption,version,buildnumber           \u64cd\u4f5c\u7cfb\u7edf\u8be6\u7ec6\u7248\u672c<br>wmic process where name=\"chrome.exe\" get processid,workingsetsize<br>                                                  \u67e5 Chrome \u8fdb\u7a0b\u7684\u5185\u5b58\u5360\u7528<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">powercfg\uff1a\u7535\u6e90\u4e0e\u7535\u6c60\u8bca\u65ad<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">powercfg \/energy                   \u751f\u6210 60 \u79d2\u7535\u6e90\u6548\u7387\u5206\u6790\u62a5\u544a\uff08HTML\uff09<br>powercfg \/batteryreport            \u751f\u6210\u7535\u6c60\u5065\u5eb7\u62a5\u544a\uff08\u7b14\u8bb0\u672c\u5fc5\u5907\uff09<br>powercfg \/sleepstudy               \u5206\u6790\u7761\u7720\u72b6\u6001\u62a5\u544a<br>powercfg \/requests                 \u67e5\u770b\u54ea\u4e9b\u7a0b\u5e8f\u5728\u963b\u6b62\u7cfb\u7edf\u8fdb\u5165\u7761\u7720<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>powercfg \/batteryreport<\/code> \u751f\u6210\u7684\u62a5\u544a\u4f1a\u663e\u793a\u7535\u6c60\u8bbe\u8ba1\u5bb9\u91cf\u548c\u5f53\u524d\u6ee1\u5145\u5bb9\u91cf\uff0c\u4e24\u8005\u5dee\u8ddd\u5c31\u662f\u7535\u6c60\u7684\u8001\u5316\u7a0b\u5ea6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u7cfb\u7edf\u4fee\u590d\uff1a\u6025\u6551\u5de5\u5177\u7bb1<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e09\u4ef6\u5957\uff1asfc \u2192 dism \u2192 bootrec<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7cfb\u7edf\u51fa\u95ee\u9898\u65f6\uff0c\u6309\u7167\u8fd9\u4e2a\u987a\u5e8f\u6765\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e00\u6b65\uff0c<code>sfc \/scannow<\/code>\u3002\u626b\u63cf\u6240\u6709\u53d7\u4fdd\u62a4\u7684\u7cfb\u7edf\u6587\u4ef6\uff0c\u81ea\u52a8\u66ff\u6362\u635f\u574f\u6216\u88ab\u7be1\u6539\u7684\u6587\u4ef6\u3002\u5fc5\u987b\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\uff0c\u9700\u8981\u51e0\u5206\u949f\u65f6\u95f4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\u6b65\uff0c\u5982\u679c sfc \u4fee\u590d\u5931\u8d25\uff08\u63d0\u793a&#8221;\u53d1\u73b0\u635f\u574f\u6587\u4ef6\u4f46\u65e0\u6cd5\u4fee\u590d&#8221;\uff09\uff0c\u518d\u7528 <code>dism<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dism \/online \/cleanup-image \/scanhealth     \u68c0\u67e5\u7cfb\u7edf\u6620\u50cf\u662f\u5426\u635f\u574f<br>dism \/online \/cleanup-image \/checkhealth    \u8bc4\u4f30\u635f\u574f\u7a0b\u5ea6<br>dism \/online \/cleanup-image \/restorehealth  \u4ece Windows Update \u4e0b\u8f7d\u5065\u5eb7\u6587\u4ef6\u5e76\u4fee\u590d<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e09\u6b65\uff0c\u5982\u679c\u7cfb\u7edf\u8fde\u5f15\u5bfc\u90fd\u8fdb\u4e0d\u53bb\uff0c\u8fdb WinPE \u540e\u7528 <code>bootrec<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bootrec \/fixmbr       \u4fee\u590d\u4e3b\u5f15\u5bfc\u8bb0\u5f55<br>bootrec \/fixboot      \u4fee\u590d\u5f15\u5bfc\u6247\u533a<br>bootrec \/rebuildbcd   \u91cd\u5efa\u5f15\u5bfc\u914d\u7f6e\u6570\u636e\uff08BCD\uff09<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e09\u6b65\u80fd\u89e3\u51b3\u7edd\u5927\u591a\u6570&#8221;\u7cfb\u7edf\u6587\u4ef6\u635f\u574f&#8221;\u548c&#8221;\u65e0\u6cd5\u542f\u52a8&#8221;\u7684\u95ee\u9898\uff0c\u6bd4\u91cd\u88c5\u7cfb\u7edf\u5feb\u5f97\u591a\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u5b9e\u7528\u6280\u5de7\u6c47\u603b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7ba1\u9053\u7b26 <code>|<\/code><\/strong>\uff1a\u628a\u5de6\u8fb9\u547d\u4ee4\u7684\u8f93\u51fa\u4f5c\u4e3a\u53f3\u8fb9\u547d\u4ee4\u7684\u8f93\u5165\uff0c\u662f CMD \u7ec4\u5408\u6280\u7684\u6838\u5fc3\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tasklist | findstr svchost        \u67e5\u627e svchost \u8fdb\u7a0b<br>dir \/s *.log | findstr \"2025\"     \u5217\u51fa\u542b 2025 \u7684\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u91cd\u5b9a\u5411\u7b26 <code>&gt;<\/code> \u548c <code>&gt;&gt;<\/code><\/strong>\uff1a<code>&gt;<\/code> \u628a\u8f93\u51fa\u5199\u5165\u6587\u4ef6\uff08\u8986\u76d6\uff09\uff0c<code>&gt;&gt;<\/code> \u8ffd\u52a0\u5230\u6587\u4ef6\u672b\u5c3e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ipconfig \/all &gt; network_info.txt      \u628a\u7f51\u7edc\u4fe1\u606f\u4fdd\u5b58\u6210\u6587\u4ef6<br>systeminfo &gt;&gt; report.txt              \u628a\u7cfb\u7edf\u4fe1\u606f\u8ffd\u52a0\u5230\u62a5\u544a<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u9519\u8bef\u8f93\u51fa\u91cd\u5b9a\u5411 <code>2&gt;nul<\/code><\/strong>\uff1a\u5f88\u591a\u547d\u4ee4\u4f1a\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\uff0c\u7528 <code>2&gt;nul<\/code> \u628a\u9519\u8bef\u4fe1\u606f\u6254\u6389\uff0c\u8ba9\u8f93\u51fa\u66f4\u5e72\u51c0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5386\u53f2\u547d\u4ee4<\/strong>\uff1a\u6309 <code>\u2191\u2193<\/code> \u65b9\u5411\u952e\u8c03\u7528\u5386\u53f2\u547d\u4ee4\uff1b\u6309 <code>F7<\/code> \u5f39\u51fa\u5386\u53f2\u8bb0\u5f55\u5217\u8868\uff1b<code>doskey \/history<\/code> \u67e5\u770b\u6240\u6709\u5386\u53f2\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tab \u81ea\u52a8\u8865\u5168<\/strong>\uff1a\u8f93\u5165\u8def\u5f84\u65f6\u6309 <code>Tab<\/code> \u952e\u81ea\u52a8\u8865\u5168\uff0c\u518d\u6309\u53ef\u4ee5\u5207\u6362\u5230\u4e0b\u4e00\u4e2a\u5339\u914d\u7ed3\u679c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\u7279\u5b9a\u547d\u4ee4<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">runas \/user:Administrator cmd<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u5165\u5bc6\u7801\u540e\u4f1a\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00\u65b0\u7684 CMD \u7a97\u53e3\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">CMD \u7684\u547d\u4ee4\u4f53\u7cfb\u5e9e\u5927\uff0c\u4f46\u6838\u5fc3\u5c31\u662f\u8fd9\u51e0\u4e2a\u7ef4\u5ea6\uff1a\u7f51\u7edc\u8bca\u65ad\u3001\u6587\u4ef6\u64cd\u4f5c\u3001\u8fdb\u7a0b\u7ba1\u7406\u3001\u7cfb\u7edf\u4fee\u590d\u3001\u6279\u5904\u7406\u81ea\u52a8\u5316\u3002\u6bcf\u4e2a\u65b9\u5411\u6df1\u6316\u4e0b\u53bb\u90fd\u6709\u5927\u91cf\u7ec6\u8282\uff0c\u4f46\u638c\u63e1\u672c\u6587\u7684\u8fd9\u4e9b\u547d\u4ee4\uff0c\u5df2\u7ecf\u8db3\u4ee5\u5e94\u5bf9\u65e5\u5e38 90% \u7684\u573a\u666f\u3002\u4e0a\u65b9\u7684\u4ea4\u4e92\u624b\u518c\u53ef\u4ee5\u6309\u5206\u7c7b\u7b5b\u9009\u547d\u4ee4\uff0c\u70b9\u51fb\u4efb\u610f\u547d\u4ee4\u5361\u7247\u53ef\u4ee5\u5728\u5bf9\u8bdd\u4e2d\u83b7\u53d6\u66f4\u8be6\u7ec6\u7684\u8bf4\u660e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4ec0\u4e48\u662f CMD\uff1f\u4e3a\u4ec0\u4e48\u8981\u5b66\u5b83\uff1f \u5f88\u591a\u4eba\u5bf9 Windows \u7684\u5370\u8c61\u662f\u9f20\u6807\u70b9\u4e00\u70b9\u5c31\u80fd\u641e\u5b9a\u4e00\u5207\u3002\u90a3 CMD \u8fd9\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[14,9,7],"tags":[549,48],"class_list":["post-7905","post","type-post","status-publish","format-standard","hentry","category-teacher","category-system","category-software","tag-cmd","tag-windows","entry"],"_links":{"self":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts\/7905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/comments?post=7905"}],"version-history":[{"count":0,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts\/7905\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/media?parent=7905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/categories?post=7905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/tags?post=7905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}