{"id":5326,"date":"2022-09-15T20:19:29","date_gmt":"2022-09-15T12:19:29","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5326"},"modified":"2022-09-15T20:19:29","modified_gmt":"2022-09-15T12:19:29","slug":"windows%e6%89%b9%e5%a4%84%e7%90%86%e8%84%9a%e6%9c%ac%e7%bc%96%e5%86%99%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5326.html","title":{"rendered":"Windows\u6279\u5904\u7406\u811a\u672c\u7f16\u5199\u5b66\u4e60"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u524d\u6bb5\u65f6\u95f4\u56e0\u4e3a\u5de5\u4f5c\u9700\u8981\u7b80\u5355\u5b66\u4e60\u4e86\u4e00\u4e0bWindows\u4e0abatch\u811a\u672c\u7684\u7f16\u5199\uff0c\u5df2\u7ecf\u53ef\u4ee5\u7528batch\u811a\u672c\u5b9e\u73b0\u4e00\u4e9b\u7b80\u5355\u7684\u5e38\u7528\u529f\u80fd\uff0c\u8fd9\u91cc\u7b80\u8981\u8bb0\u5f55\u4e00\u4e0b\uff0c\u65b9\u4fbf\u4ee5\u540e\u6709\u9700\u8981\u7684\u65f6\u5019\u8fdb\u884c\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<p>\u8d77\u56e0\u5728\u4e8e\u6211\u6709\u4e00\u4e2aWindows\u8f6f\u4ef6\u4e0b\u53d1\u5b89\u88c5\u7684\u9700\u6c42\uff0c\u4f46\u73b0\u5728\u8f6f\u4ef6\u4e0b\u53d1\u901a\u9053\u90a3\u91cc\u505a\u7684\u8fd8\u6bd4\u8f83\u7cd9\uff0c\u6ca1\u529e\u6cd5\u8fdb\u884c\u4e00\u4e9b\u7ec6\u7c92\u5ea6\u7684\u5224\u65ad\u548c\u63a7\u5236\uff0c\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u672c\u8eab\u4e5f\u4e0d\u662f\u7279\u522b\u201c\u667a\u80fd\u201d\uff0c\u8fd9\u65f6\u6211\u5c31\u9700\u8981\u81ea\u5df1\u5199\u4e00\u4e2abatch\u811a\u672c\u6765\u5b9e\u73b0\u5224\u65ad\u662f\u5426\u5b89\u88c5\u3001\u6bd4\u8f83\u5b89\u88c5\u7248\u672c\u3001\u4e0b\u8f7d\u5b89\u88c5\u6587\u4ef6\u3001\u4e0a\u62a5\u5b89\u88c5\u7ed3\u679c\u548c\u72b6\u6001\u7684\u529f\u80fd\u3002\u4e0b\u9762\u5c31\u7b80\u5355\u8bb0\u5f55\u4e00\u4e0b\u5728\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u65f6\u7684\u62c6\u89e3\u548c\u641c\u7d22\u8fc7\u7a0b\uff0c\u65b9\u4fbf\u540e\u9762\u53c2\u8003\u3002<\/p>\n\n\n\n<p>\u7b80\u5355\u6765\u770b\u5e38\u89c4\u64cd\u4f5c\u5c31\u662f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8981\u77e5\u9053\u83b7\u53d6\u76f8\u5173\u4fe1\u606f\u7684\u547d\u4ee4\u662f\u4ec0\u4e48\uff08\u6bd4\u5982\u83b7\u53d6IP\u7528ipconfig\u547d\u4ee4\uff09<\/li><li>\u7ba1\u9053\/\u91cd\u5b9a\u5411<\/li><li>\u6587\u4ef6\u64cd\u4f5c\uff08\u521b\u5efa\/\u6253\u5370\/\u590d\u5236\/\u5220\u9664\/\u538b\u7f29\/\u89e3\u538b\/\u2026\u2026\uff09<\/li><li>\u5b57\u7b26\u4e32\u67e5\u627e\/\u622a\u53d6\/\u6bd4\u8f83\/\u62fc\u63a5\/\u5207\u5206\/\u2026\u2026<\/li><li>\u7f51\u7edc\u8bf7\u6c42<\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Windows \u547d\u4ee4\u884c\/batch\u811a\u672c\u4e2d\u5982\u4f55\u83b7\u53d6\u4e3b\u673a\u7cfb\u7edf\u76f8\u5173\u4fe1\u606f\uff1f<\/h5>\n\n\n\n<p>IP\/MAC\u5730\u5740<br>\u4e3b\u673a\u540d<br>\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<br>\u5e8f\u5217\u53f7<\/p>\n\n\n\n<p>\u5982\u679c\u4ec5\u4ec5\u53ea\u662f\u5728\u547d\u4ee4\u884c\u4e0a\u9762\u770b\u7684\u8bdd\u90fd\u8fd8\u6bd4\u8f83\u7b80\u5355\u76f4\u63a5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ipconfig \/all\nhostname\nwmic os get caption\nwmic bios get serialnumber<\/code><\/pre>\n\n\n\n<p>\u4e0d\u8fc7\u5982\u679c\u60f3\u628a\u5177\u4f53\u7684\u503c\u901a\u8fc7\u63a5\u53e3\u8fdb\u884c\u4e0a\u62a5\u7684\u8bdd\u5c31\u9700\u8981\u8fdb\u884c\u5b57\u7b26\u4e32\u63d0\u53d6\u548c\u683c\u5f0f\u5316\uff0cWindows\u4e0a\u539f\u751f\u7684\u547d\u4ee4\/batch\u811a\u672c\u5904\u7406\u80fd\u529b\u76f8\u5bf9Linux\u8981\u5f31\u5f88\u591a\uff08\u4e3b\u8981\u662fWindows\u7684\u6211\u4e0d\u719f\uff0cPowerShell\u4e5f\u4e0d\u4f1a\u800c\u4e14\u8c8c\u4f3c\u4e5f\u5b58\u5728\u7248\u672c\u5dee\u5f02\uff1f\uff09\uff0c\u5904\u7406\u8d77\u6765\u5c31\u9ebb\u70e6\u4e86\u4e0d\u5c11\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\uff1a<strong>for\u547d\u4ee4\u7684\u529f\u80fd\u6709\u9650\u4e14\u9650\u5236\u8f83\u591a\uff0c\u6ca1\u529e\u6cd5\u5728 command \u90a3\u91cc\u4f7f\u7528\u7ba1\u9053\u64cd\u4f5c\u7b26\uff0c\u53ea\u80fd\u5148\u5c06\u590d\u5408\u547d\u4ee4\u7684\u7ed3\u679c\u91cd\u5b9a\u5411\u5230\u6587\u4ef6\u91cc\u9762\uff0c\u7136\u540e\u5904\u7406\u6587\u4ef6\u5185\u5bb9<\/strong>\uff0c\u8fd9\u91cc\u5c31\u6d89\u53ca\u5230\u5b57\u7b26\u4e32\u5904\u7406\u4e86\u2014\u2014\u5b57\u7b26\u4e32\u67e5\u627e\/\u63d0\u53d6\/\u62fc\u63a5\u2026\u2026Linux\u4e0a\u51e0\u884c\u547d\u4ee4\u5c31\u80fd\u5b8c\u6210\u7684\u529f\u80fd\u5728Windows\u4e0a\u7528batch\u6765\u5b9e\u73b0\u5c31\u9700\u8981\u4e00\u6bb5\u4ee3\u7801\uff0c\u800c\u4e14\u8fd8\u4e0d\u4f18\u7f8e\u3002<\/p>\n\n\n\n<p>for\u5faa\u73af\u4e2d\u4f7f\u7528\u53d8\u91cf\u65f6\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u6ce8\u610f\u4e0b\u97622\u4e2afor\u5faa\u73af\u7684\u4e0d\u540c\u4e4b\u5904\n# \u4e00\u4e2a\u6709 \/f \u9009\u9879\uff0c\u6240\u6709\u540e\u9762\u7684\u62ec\u53f7\u91cc\u9762\u6709\u53cc\u5f15\u53f7\n# \u4e00\u4e2a\u6ca1\u6709 \/f \u9009\u9879\uff0c\u540e\u9762\u6ca1\u6709 tokens \u53c2\u6570\u4ee5\u53ca\u62ec\u53f7\u91cc\u9762\u4e5f\u6ca1\u6709\u53cc\u5f15\u53f7\nfor \/f \"tokens=1\" %%a in (\"%date:\/=-%\") do (set mydate=%%a)\nfor %%a in (%time::=%) do (set mytime=%%a)\n\n# batch\u811a\u672c\u4e2d %~dp0 \u548c %~n0 \u53d8\u91cf\u7684\u53d6\u503c\nset tmpfile=\"%~dp0%~n0-%mydate%.txt\"\n\n\n# batch\u811a\u672c\u4e2dfor\u5faa\u73af\u4f7f\u7528 call \u5b50\u4f8b\u7a0b\u7684\u65b9\u5f0f\u6765\u66f4\u65b0\u53d8\u91cf\u7684\u503c\uff08\u76f4\u63a5\u7528\u7684\u8bdd\u503c\u662f\u56fa\u5b9a\u7684\uff09\n:: set variable ip\nset ip=\nipconfig | findstr \/i ipv | findstr 1&#91;97]2 &gt;%tmpfile%\nfor \/f \"tokens=2 delims=:\" %%a in (%tmpfile%) do (\necho %%a\ncall :subroutine_ip %%a\n)\n:subroutine_ip\nset ip=%1,%ip%\ngoto :eof\n\nset ip=%ip:~0,-1%\necho %ip%<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Windows\u4e0a\u5982\u4f55\u5224\u65ad\u64cd\u4f5c\u7cfb\u7edf\u662f32\u4f4d\u7684\u8fd8\u662f64\u4f4d\u7684\uff1f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code># \u64cd\u4f5c\u7cfb\u7edf\u7684\u67b6\u6784\nwmic os get osarchitecture\n\n# \u5904\u7406\u5668\u7684\u67b6\u6784\necho %PROCESSOR_ARCHITECTURE%<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u5224\u65ad\u67d0\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u7a7a\u503c\uff1f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>IF &#91;%1] == &#91;] GOTO MyLabel\n:: or\nIF \"%~1\" == \"\" GOTO MyLabel<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e0d\u76f8\u7b49\uff1f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>if NOT \"asdf\" == \"fdas\" echo asdf<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u8fdb\u884c\u5b57\u7b26\u4e32\u622a\u53d6\uff1f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\u8bed\u6cd5\uff1a\n%variable:~start_index%\n%variable:~start_index,end_index%\n\n:: \u622a\u53d6ip\u53d8\u91cf\u5b50\u4e32\uff0c\u53bb\u6389\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\nset ip=%ip:~0,-1%<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">bat\u6279\u5904\u7406\u4e2d\u7684\u6ce8\u91ca\u8bed\u6cd5<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>:: comments here\nRem comments here<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">bat\u6279\u5904\u7406\u4e2d\u5982\u4f55\u505a\u5b57\u7b26\u4e32\u66ff\u6362<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off \nset str=This message needs changed. \necho %str% \n\nset str=%str:needs=has% \necho %str%<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u83b7\u53d6\u5f53\u524d\u7684\u65e5\u671f\u65f6\u95f4\uff1f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>for \/f \"tokens=1\" %%a in (\"%date:\/=-%\") do (set mydate=%%a)\n\nfor %%a in (%time::=%) do (set mytime=%%a)<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Windows\u4e0b\u5982\u4f55\u8fdb\u884c\u6587\u4ef6\u4e0b\u8f7d\u548cHTTP\u8bf7\u6c42\u64cd\u4f5c<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>powershell -Command \"(New-Object Net.WebClient).DownloadFile('https:\/\/ixyzero.com\/blog\/awk_sed.txt', 'awk_sed.txt')\"\n\npowershell -Command \"Invoke-WebRequest https:\/\/ixyzero.com\/blog\/awk_sed.txt -OutFile awk_sed.txt\"\n\ncurl -o awk_sed.txt https:\/\/ixyzero.com\/blog\/awk_sed.txt<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Windows\u7684\u547d\u4ee4\u884c\u4e0b\u7684\u6587\u4ef6\u64cd\u4f5c<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code># \u521b\u5efa\u7a7a\u6587\u4ef6\ntype nul &gt; filename.txt\ncopy NUL EMptyFile.txt\ncopy \/b NUL EmptyFile.txt\necho. 2&gt;EmptyFile.txt\nREM. &gt; empty.file\nfsutil file createnew file.cmd 0 # to create a file on a mapped drive\n\n# \u521b\u5efa\u6307\u5b9a\u5927\u5c0f\u7684\u6587\u4ef6\nfsutil file createnew filename.txt 1000\n\n# \u6253\u5370\u6587\u4ef6\u5185\u5bb9\uff0c\u7c7b\u4f3c\u4e8eLinux\u4e0a\u7684cat\u547d\u4ee4\ntype filename.txt\n\n# \u5220\u9664\u6587\u4ef6\uff0c\u7c7b\u4f3c\u4e8eLinux\u4e0a\u7684rm\u547d\u4ee4\ndel filename.txt\n\n# \u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u6709\u54ea\u4e9b\u6587\u4ef6\uff0c\u7c7b\u4f3c\u4e8eLinux\u4e0a\u7684ls\u547d\u4ee4\ndir\n\n# \u521b\u5efa\u76ee\u5f55\nmkdir dir_name\n\n# \u5220\u9664\u76ee\u5f55\nrmdir dir_name<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Windows\u7684\u547d\u4ee4\u884c\u4e0b\u7684\u590d\u5236<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code># \u65e0\u4efb\u4f55\u9009\u9879\uff0c\u4ec5\u590d\u5236\u6587\u4ef6\uff0c\u4e0d\u590d\u5236\u76ee\u5f55\nxcopy \\path\\to\\source \\path\\to\\dest\n\n# \u65e0\u4efb\u4f55\u9009\u9879\uff0c\u76ee\u6807\u662f\u4e00\u4e2a\u8fd8\u6ca1\u521b\u5efa\u7684\u76ee\u5f55\uff0c\u9700\u8981\u4ea4\u4e92\u5f0f\u4e92\u52a8\u624d\u53ef\u7ee7\u7eed\nxcopy \\path\\to\\source \\path\\to\\dest\\none_exist_dir\n\n# \u501f\u52a9\u7ba1\u9053\u5c06\u4e0a\u9762\u7684\u547d\u4ee4\u4ece\u4ea4\u4e92\u5f0f\u6539\u6210\u9759\u9ed8\u6267\u884c\u7684\necho d | xcopy \\path\\to\\source \\path\\to\\dest\\none_exist_dir\n\n# \u6dfb\u52a0 \/e \u9009\u9879\uff0c\u590d\u5236\u5305\u62ec\u7a7a\u76ee\u5f55\u5728\u5185\u7684\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\uff0c\u4f46\u662f\u5982\u679c\u6709\u540c\u540d\u6587\u4ef6\uff0c\u5219\u4f1a\u9700\u8981\u4ea4\u4e92\u4ee5\u786e\u5b9a\u662f\u5426\u8fdb\u884c\u8986\u76d6\nxcopy \/e \\path\\to\\source \\path\\to\\dest\n\n# \u6dfb\u52a0 \/e \u548c \/y \u9009\u9879\uff0c\u76f4\u63a5\u590d\u5236\u5305\u62ec\u7a7a\u76ee\u5f55\u5728\u5185\u7684\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\uff0c\u5982\u679c\u6709\u540c\u540d\u6587\u4ef6\uff0c\u76f4\u63a5\u8fdb\u884c\u8986\u76d6\u5373\u53ef\nxcopy \/e \/y \\path\\to\\source \\path\\to\\dest\n\n# \u7b80\u800c\u8a00\u4e4b\uff0c\u4e00\u4e2a\u7b80\u5355\u5b9e\u7528\u7684xcopy\u547d\u4ee4\u5c31\u662f\u2014\u2014\u76f4\u63a5\u5c06\u6e90\u76ee\u5f55\u62f7\u8d1d\u5230\u4e00\u4e2a\u4e4b\u524d\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\u4e0b\necho d | xcopy \/y \/e \\path\\to\\source \\path\\to\\dest\\none_exist_dir\n\nxcopy \/?\n...\n  \/S           \u590d\u5236\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\uff0c\u4e0d\u5305\u62ec\u7a7a\u76ee\u5f55\u3002\n&#91;*]  \/E           \u590d\u5236\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\uff0c\u5305\u62ec\u7a7a\u76ee\u5f55\u3002\u4e0e \/S \/E \u76f8\u540c\u3002\u53ef\u4ee5\u7528\u6765\u4fee\u6539 \/T\u3002\n&#91;*]  \/C           \u5373\u4f7f\u6709\u9519\u8bef\uff0c\u4e5f\u7ee7\u7eed\u590d\u5236\u3002\n&#91;*]  \/I           \u5982\u679c\u76ee\u6807\u4e0d\u5b58\u5728\uff0c\u4e14\u8981\u590d\u5236\u591a\u4e2a\u6587\u4ef6\uff0c\u5219\u5047\u5b9a\u76ee\u6807\u5fc5\u987b\u662f\u76ee\u5f55\u3002\n  \/Q           \u590d\u5236\u65f6\u4e0d\u663e\u793a\u6587\u4ef6\u540d\u3002\n  \/F           \u590d\u5236\u65f6\u663e\u793a\u5b8c\u6574\u7684\u6e90\u6587\u4ef6\u540d\u548c\u76ee\u6807\u6587\u4ef6\u540d\u3002\n  \/L           \u663e\u793a\u8981\u590d\u5236\u7684\u6587\u4ef6\u3002\n  \/G           \u5141\u8bb8\u5c06\u52a0\u5bc6\u6587\u4ef6\u590d\u5236\u5230\u4e0d\u652f\u6301\u52a0\u5bc6\u7684\u76ee\u6807\u3002\n&#91;*]  \/H           \u9690\u85cf\u6587\u4ef6\u548c\u7cfb\u7edf\u6587\u4ef6\u4e5f\u4f1a\u590d\u5236\u3002\n  \/R           \u8986\u76d6\u53ea\u8bfb\u6587\u4ef6\u3002\n  \/T           \u521b\u5efa\u76ee\u5f55\u7ed3\u6784\uff0c\u4f46\u4e0d\u590d\u5236\u6587\u4ef6\u3002\u4e0d\u5305\u62ec\u7a7a\u76ee\u5f55\u6216\u5b50\u76ee\u5f55\u3002\/T \/E \u5305\u62ec\u7a7a\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\u3002\n  \/U           \u53ea\u590d\u5236\u5df2\u7ecf\u5b58\u5728\u4e8e\u76ee\u6807\u4e2d\u7684\u6587\u4ef6\u3002\n  \/K           \u590d\u5236\u5c5e\u6027\u3002\u4e00\u822c\u7684 Xcopy \u4f1a\u91cd\u7f6e\u53ea\u8bfb\u5c5e\u6027\u3002\n  \/N           \u7528\u751f\u6210\u7684\u77ed\u540d\u79f0\u590d\u5236\u3002\n  \/O           \u590d\u5236\u6587\u4ef6\u6240\u6709\u6743\u548c ACL \u4fe1\u606f\u3002\n  \/X           \u590d\u5236\u6587\u4ef6\u5ba1\u6838\u8bbe\u7f6e(\u9690\u542b \/O)\u3002\n&#91;*]  \/Y           \u53d6\u6d88\u63d0\u793a\u4ee5\u786e\u8ba4\u8981\u8986\u76d6\u73b0\u6709\u76ee\u6807\u6587\u4ef6\u3002\n  \/-Y          \u89e6\u53d1\u63d0\u793a\uff0c\u4ee5\u786e\u8ba4\u8981\u8986\u76d6\u73b0\u6709\u76ee\u6807\u6587\u4ef6\u3002\n  \/Z           \u5728\u53ef\u91cd\u65b0\u542f\u52a8\u6a21\u5f0f\u4e0b\u590d\u5236\u7f51\u7edc\u6587\u4ef6\u3002\n  \/B           \u590d\u5236\u7b26\u53f7\u94fe\u63a5\u672c\u8eab\u4e0e\u94fe\u63a5\u76ee\u6807\u3002\n  \/J           \u590d\u5236\u65f6\u4e0d\u4f7f\u7528\u7f13\u51b2\u7684 I\/O\u3002\u63a8\u8350\u590d\u5236\u5927\u6587\u4ef6\u65f6\u4f7f\u7528\u3002\n  \/COMPRESS    \u5982\u679c\u9002\u7528\uff0c\u5728\u4f20\u8f93\u671f\u95f4\u8bf7\u6c42\u7f51\u7edc\u538b\u7f29\u3002\n...<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>for\u5faa\u73af\u4e2d\u4f7f\u7528\u53d8\u91cf\u65f6\u7684\u6ce8\u610f\u4e8b\u9879<br><a href=\"https:\/\/ss64.com\/nt\/for.html\">https:\/\/ss64.com\/nt\/for.html<\/a><\/p>\n\n\n\n<p>Windows\u4e0a\u5982\u4f55\u5224\u65ad\u64cd\u4f5c\u7cfb\u7edf\u662f32\u4f4d\u7684\u8fd8\u662f64\u4f4d\u7684\uff1f<br><a href=\"https:\/\/superuser.com\/questions\/321988\/how-do-i-determine-if-my-windows-is-32-bit-or-64-bit-using-a-command\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/superuser.com\/questions\/321988\/how-do-i-determine-if-my-windows-is-32-bit-or-64-bit-using-a-command<\/a><\/p>\n\n\n\n<p>batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u5224\u65ad\u67d0\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u7a7a\u503c\uff1f<br><a href=\"https:\/\/stackoverflow.com\/questions\/2541767\/what-is-the-proper-way-to-test-if-a-parameter-is-empty-in-a-batch-file\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/2541767\/what-is-the-proper-way-to-test-if-a-parameter-is-empty-in-a-batch-file<\/a><\/p>\n\n\n\n<p>batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e0d\u76f8\u7b49\uff1f<br><a href=\"https:\/\/stackoverflow.com\/questions\/1421441\/batch-not-equal-inequality-operator\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/1421441\/batch-not-equal-inequality-operator<\/a><br><a href=\"https:\/\/ss64.com\/nt\/if.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/ss64.com\/nt\/if.html<\/a><\/p>\n\n\n\n<p>batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u8fdb\u884c\u5b57\u7b26\u4e32\u622a\u53d6\uff1f<br><a href=\"https:\/\/stackoverflow.com\/questions\/636381\/what-is-the-best-way-to-do-a-substring-in-a-batch-file\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/636381\/what-is-the-best-way-to-do-a-substring-in-a-batch-file<\/a><br><a href=\"https:\/\/ss64.com\/nt\/syntax-substring.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/ss64.com\/nt\/syntax-substring.html<\/a><\/p>\n\n\n\n<p>Batch Script &#8211; Comments<br><a href=\"https:\/\/www.tutorialspoint.com\/batch_script\/batch_script_comments.htm\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.tutorialspoint.com\/batch_script\/batch_script_comments.htm<\/a><\/p>\n\n\n\n<p>How to &#8220;comment-out&#8221; (add comment) in a batch\/cmd?<br><a href=\"https:\/\/stackoverflow.com\/questions\/11269338\/how-to-comment-out-add-comment-in-a-batch-cmd\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/11269338\/how-to-comment-out-add-comment-in-a-batch-cmd<\/a><\/p>\n\n\n\n<p>Batch Script &#8211; Replace a String<br><a href=\"https:\/\/www.tutorialspoint.com\/batch_script\/batch_script_replace_string.htm\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.tutorialspoint.com\/batch_script\/batch_script_replace_string.htm<\/a><\/p>\n\n\n\n<p>How to replace substrings in windows batch file<br><a href=\"https:\/\/stackoverflow.com\/questions\/5273937\/how-to-replace-substrings-in-windows-batch-file\/5274061#5274061\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/5273937\/how-to-replace-substrings-in-windows-batch-file\/5274061#5274061<\/a><\/p>\n\n\n\n<p>batch\u6279\u5904\u7406\u811a\u672c\u4e2d\u5982\u4f55\u83b7\u53d6\u5f53\u524d\u7684\u65e5\u671f\u65f6\u95f4\uff1f<br><a href=\"https:\/\/stackoverflow.com\/questions\/203090\/how-do-i-get-current-date-time-on-the-windows-command-line-in-a-suitable-format\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/203090\/how-do-i-get-current-date-time-on-the-windows-command-line-in-a-suitable-format<\/a><\/p>\n\n\n\n<p>CURL was added to Windows 10 (1903) from build 17063 or later.<br><a href=\"https:\/\/ss64.com\/nt\/curl.html\">https:\/\/ss64.com\/nt\/curl.html<\/a><\/p>\n\n\n\n<p>Windows batch file file download from a URL<br><a href=\"https:\/\/stackoverflow.com\/questions\/4619088\/windows-batch-file-file-download-from-a-url\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/4619088\/windows-batch-file-file-download-from-a-url<\/a><\/p>\n\n\n\n<p>Windows\u7684\u547d\u4ee4\u884c\u4e0b\u7684\u6587\u4ef6\u64cd\u4f5c<br><a href=\"https:\/\/stackoverflow.com\/questions\/1702762\/how-can-i-create-an-empty-file-at-the-command-line-in-windows\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/stackoverflow.com\/questions\/1702762\/how-can-i-create-an-empty-file-at-the-command-line-in-windows<\/a><\/p>\n\n\n\n<p>Windows\u7684\u547d\u4ee4\u884c\u4e0b\u7684\u590d\u5236<br><a href=\"https:\/\/ss64.com\/nt\/xcopy.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/ss64.com\/nt\/xcopy.html<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u524d\u6bb5\u65f6\u95f4\u56e0\u4e3a\u5de5\u4f5c\u9700\u8981\u7b80\u5355\u5b66\u4e60\u4e86\u4e00\u4e0bWindows\u4e0abatch\u811a\u672c\u7684\u7f16\u5199\uff0c\u5df2\u7ecf\u53ef\u4ee5\u7528ba [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,7,20],"tags":[18,106,104,1829,1852],"class_list":["post-5326","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-programing","category-windows","tag-batch","tag-for","tag-windows","tag-wmic","tag-xcopy"],"views":2284,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5326"}],"version-history":[{"count":2,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5326\/revisions"}],"predecessor-version":[{"id":5328,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5326\/revisions\/5328"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}