{"id":12157,"date":"2020-04-04T21:09:38","date_gmt":"2020-04-04T12:09:38","guid":{"rendered":"https:\/\/cg-method.com\/?p=12157"},"modified":"2026-10-24T19:43:09","modified_gmt":"2026-10-24T10:43:09","slug":"windows-bat-create-folders","status":"publish","type":"post","link":"https:\/\/cg-method.com\/work-tools\/windows-bat-create-folders\/","title":{"rendered":"Windows\u30d0\u30c3\u30c1\u2502\u8d85\u7c21\u5358\uff01\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u307e\u3068\u3081\u3066\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Excel\u306e\u540d\u524d\u30ea\u30b9\u30c8\u304b\u3089\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u308b\u3068\u304d\u306f\u30011\u884c\u306b\u3064\u304d1\u3064\u306emd\u30b3\u30de\u30f3\u30c9\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CSV\u306f\u5f15\u7528\u7b26\u3092\u91cd\u306d\u3066\u4fdd\u5b58\u3059\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u62e1\u5f35\u5b50\u3092BAT\u3078\u5909\u3048\u308b\u3060\u3051\u3067\u5b9f\u884c\u305b\u305a\u3001\u5b8c\u6210\u3057\u305f\u30b3\u30de\u30f3\u30c9\u5217\u3092\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u65e5\u672c\u8a9e\u30fb\u7a7a\u767d\u3092\u542b\u3080\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u308b\u30d0\u30c3\u30c1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2026\/10\/cgm-windows-practice-20261002-v2.zip\">Windows\u7df4\u7fd2\u7528\u30c7\u30fc\u30bf\u3068\u30b9\u30af\u30ea\u30d7\u30c8\uff08ZIP\uff09<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ZIP\u306f\u7a7a\u306e\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u5c55\u958b\u3057\u3001\u4e0b\u306e\u624b\u9806\u3067\u6307\u5b9a\u3059\u308b\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u958b\u3044\u3066\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>ZIP\u306fcreate\u30d5\u30a9\u30eb\u30c0\u30fc\u306ecreate.bat\u3092\u7de8\u96c6\u7528\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304f\u3002\u81ea\u4f5c\u3059\u308b\u5834\u5408\u306f\u3001\u65b0\u3057\u3044\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b<\/li><li>\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001UTF-8\uff08BOM\u306a\u3057\uff09\u3067create.bat\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b<\/li><li>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067create.bat\u3092\u5b9f\u884c\u3059\u308b<\/li><li>\u5c71\u7530 \u592a\u90ce\u3001\u8cc7\u6599 ! &amp; [2026]\u3001\u9032\u6357 100%\u306e3\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u78ba\u8a8d\u3059\u308b<\/li><\/ol>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-batch\"><code>@echo off\nsetlocal DisableDelayedExpansion\nchcp 65001 &gt;nul\npushd &quot;%~dp0&quot; || exit \/b 1\nmd &quot;\u5c71\u7530 \u592a\u90ce&quot; || exit \/b 1\nmd &quot;\u8cc7\u6599 ! &amp; [2026]&quot; || exit \/b 1\nmd &quot;\u9032\u6357 100%%&quot; || exit \/b 1\npopd\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">pushd\u306fBAT\u81ea\u8eab\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u79fb\u52d5\u3059\u308b\u305f\u3081\u3001\u5225\u306e\u5834\u6240\u304b\u3089\u8d77\u52d5\u3057\u3066\u3082\u4f5c\u6210\u5148\u304c\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540d\u524d\u306e\u7a7a\u767d\u3084&amp;\u306f\u4e8c\u91cd\u5f15\u7528\u7b26\u3067\u56f2\u307f\u3001!\u306f\u9045\u5ef6\u5c55\u958b\u3092\u7121\u52b9\u306b\u3057\u3066\u4fdd\u6301\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">BAT\u306b\u6587\u5b57\u3068\u3057\u3066%\u3092\u66f8\u304f\u5834\u5408\u306f%%\u3068\u3057\u3001\u30d1\u30b9\u533a\u5207\u308a\u3084Windows\u3067\u4f7f\u3048\u306a\u3044\u6587\u5b57\u3001CON\u306a\u3069\u306e\u4e88\u7d04\u540d\u306f\u5165\u529b\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Excel\u306e\u30ea\u30b9\u30c8\u304b\u3089\u30b3\u30de\u30f3\u30c9\u5217\u3092\u4f5c\u308b<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>B1\u4ee5\u964d\u30781\u884c1\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3092\u5165\u529b\u3059\u308b<\/li><li>C1\u3078\u4e0b\u306e\u6570\u5f0f\u3092\u5165\u529b\u3057\u3001\u5fc5\u8981\u306a\u884c\u3078\u30b3\u30d4\u30fc\u3059\u308b<\/li><li>C\u5217\u306e\u7d50\u679c\u3092\u30b3\u30d4\u30fc\u3057\u3001\u30e1\u30e2\u5e33\u3078\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u308b<\/li><li>\u30b3\u30fc\u30c9\u4f8b\u306e3\u884c\u306emd\u3092\u3001\u8cbc\u308a\u4ed8\u3051\u305fmd\u306e\u884c\u3078\u7f6e\u304d\u63db\u3048\u308b<\/li><li>CSV\u3068\u3057\u3066\u4fdd\u5b58\u305b\u305a\u3001UTF-8\uff08BOM\u306a\u3057\uff09\u306eBAT\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u7df4\u7fd2\u7528\u306e\u6570\u4ef6\u3067\u8a66\u3059<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><code>=&quot;md &quot;&quot;&quot;&amp;SUBSTITUTE(B1,&quot;%&quot;,&quot;%%&quot;)&amp;&quot;&quot;&quot; || exit \/b 1&quot;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B1\u304c\u5c71\u7530 \u592a\u90ce\u306a\u3089\u3001C1\u306e\u7d50\u679c\u306f<code>md \"\u5c71\u7530 \u592a\u90ce\" || exit \/b 1<\/code>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6570\u5f0f\u306f%\u3092\u5909\u63db\u3059\u308b\u3060\u3051\u3067\u3001\u540d\u524d\u306e\u691c\u8a3c\u306f\u3057\u307e\u305b\u3093\u3002\u7a7a\u6b04\u3001\u4e8c\u91cd\u5f15\u7528\u7b26\u3001\u30d1\u30b9\u533a\u5207\u308a\u3001\u6539\u884c\u3001\u4e88\u7d04\u540d\u3001\u672b\u5c3e\u306e\u7a7a\u767d\u3084\u30d4\u30ea\u30aa\u30c9\u306f\u9664\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30bb\u30eb\u306b\u30d5\u30eb\u30d1\u30b9\u3084\u30b3\u30de\u30f3\u30c9\u306f\u5165\u308c\u307e\u305b\u3093\u3002\u5404\u884c\u306e\u672b\u5c3e\u306e<code>|| exit \/b 1<\/code>\u3092\u6b8b\u3059\u3068\u3001\u4f5c\u6210\u306b\u5931\u6557\u3057\u305f\u6642\u70b9\u3067\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f5c\u6210\u3067\u304d\u306a\u3044\u3068\u304d\u3068\u623b\u3057\u65b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u62e1\u5f35\u5b50\u304ccreate.bat.txt\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u3001UTF-8\u306e\u4fdd\u5b58\u5f62\u5f0f\u3068chcp 65001\u306e\u884c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u540d\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u3042\u308b\u3068md\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u3001\u30b3\u30fc\u30c9\u4f8b\u306f\u305d\u3053\u3067\u505c\u6b62\u3059\u308b\u305f\u3081\u3001\u65b0\u3057\u3044\u7a7a\u306e\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3084\u308a\u76f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9014\u4e2d\u307e\u3067\u4f5c\u6210\u3055\u308c\u305f\u5834\u5408\u3082\u65e2\u5b58\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u524a\u9664\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u4f5c\u6210\u5148\u3092\u78ba\u8a8d\u3057\u3066\u5fc5\u8981\u306a\u540d\u524d\u3060\u3051\u518d\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u623b\u3059\u3068\u304d\u306f\u7df4\u7fd2\u3067\u4f5c\u3063\u305f\u7a7a\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3060\u3051\u3092\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u542b\u3080\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u6b8b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u67082\u65e5\u306bWindows\u306eCMD\u30673\u3064\u306e\u540d\u524d\u3068\u518d\u5b9f\u884c\u6642\u306e\u505c\u6b62\u3092\u691c\u8a3c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Excel\u306e\u6570\u5f0f\u5165\u529b\u30fb\u30b3\u30d4\u30fc\u64cd\u4f5c\u306eGUI\u78ba\u8a8d\u306f\u4eca\u56de\u306e\u691c\u8a3c\u306b\u542b\u307f\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ed5\u69d8\uff1a<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/md\">Microsoft\u516c\u5f0f md<\/a>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f93\u6765\u306e\u64cd\u4f5c\u753b\u9762<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306f\u65e7\u7248\u306e\u753b\u9762\u3067\u3001\u30ea\u30b9\u30c8\u5165\u529b\u3084\u5143\u306e\u64cd\u4f5c\u4f8b\u306e\u53c2\u8003\u3068\u3057\u3066\u6b8b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u73fe\u5728\u306e\u624b\u9806\u306f\u4e0a\u306e\u30b3\u30fc\u30c9\u3068\u5165\u529b\u30fb\u51fa\u529b\u4f8b\u3092\u4f7f\u3044\u3001CSV\u306e\u62e1\u5f35\u5b50\u5909\u66f4\u3084\u5143\u30d5\u30a1\u30a4\u30eb\u306e\u76f4\u63a5\u30ea\u30cd\u30fc\u30e0\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"261\" height=\"553\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_11.png\" alt=\"\u65e7\u7248\u306e\u64cd\u4f5c\u753b\u9762\uff08\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3068\u624b\u9806\u306f\u672c\u6587\u3092\u53c2\u7167\uff09\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"261\" height=\"553\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_12.png\" alt=\"\u65e7\u7248\u306e\u64cd\u4f5c\u753b\u9762\uff08\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3068\u624b\u9806\u306f\u672c\u6587\u3092\u53c2\u7167\uff09\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"372\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_13.png\" alt=\"\u65e7\u7248\u306e\u64cd\u4f5c\u753b\u9762\uff08\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3068\u624b\u9806\u306f\u672c\u6587\u3092\u53c2\u7167\uff09\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"283\" height=\"57\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_07.png\" alt=\"\u65e7\u7248\u306e\u64cd\u4f5c\u753b\u9762\uff08\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3068\u624b\u9806\u306f\u672c\u6587\u3092\u53c2\u7167\uff09\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"202\" height=\"494\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_14.png\" alt=\"\u65e7\u7248\u306e\u64cd\u4f5c\u753b\u9762\uff08\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3068\u624b\u9806\u306f\u672c\u6587\u3092\u53c2\u7167\uff09\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"1124\" height=\"435\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_15.png\" alt=\"\u65e7\u7248\u306e\u64cd\u4f5c\u753b\u9762\uff08\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u3068\u624b\u9806\u306f\u672c\u6587\u3092\u53c2\u7167\uff09\" class=\"wp-image-12169\" srcset=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_15.png 1124w, https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_15-300x116.png 300w, https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_15-1024x396.png 1024w, https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/Screenshot_2020_0404_15-768x297.png 768w\" sizes=\"auto, (max-width: 1124px) 100vw, 1124px\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u696d\u52d9\u52b9\u7387\u5316\u306b\u5f79\u7acb\u3064\u305d\u306e\u4ed6\u306e\u30c4\u30fc\u30eb\u306f\u3001\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2026\/09\/work-tools-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/work-tools\/work-tools-matome\/\">PC\u4f5c\u696d\u306e\u52b9\u7387\u5316\u307e\u3068\u3081\uff5c\u5b66\u5272\u30fb\u8a2d\u5b9a\u30fb\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Windows\u3084\u5468\u8fba\u30c4\u30fc\u30eb\u306e\u6d3b\u7528\u6cd5\u30fb\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u6cd5\u3092\u76ee\u7684\u5225\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002 \u8a2d\u5b9a\u3067\u3064\u307e\u305a\u3044\u305f\u5834\u9762\u3084\u4f5c\u696d\u52b9\u7387\u3092\u4e0a\u3052\u305f\u3044\u3068\u304d\u306e\u53c2\u7167\u7528\u306b\u5206\u985e\u3057\u3066\u3044\u307e\u3059\u3002 \u76ee\u7684\u304b\u3089\u8a18\u4e8b\u3092\u9078\u3076&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">Windows\u30d0\u30c3\u30c1\u306e\u8a18\u4e8b\u306f\u3001\u307b\u304b\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2019\/07\/windows-bat-increment-numbers-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/work-tools\/windows-bat-increment-numbers\/\">Windows\u30d0\u30c3\u30c1\u3068PowerShell\u3067JSX\u30d5\u30a1\u30a4\u30eb\u306e\u9023\u756a\u3092\u4ed8\u3051\u76f4\u3057\u3066\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">JSX\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306e\u9023\u756a\u3092\u632f\u308a\u76f4\u3057\u3001\u5143\u30d5\u30a1\u30a4\u30eb\u3092\u6b8b\u3057\u3066\u65b0\u3057\u3044\u540d\u524d\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u308a\u307e\u3059\u3002 BAT\u304b\u3089PowerShell\u3092\u8d77\u52d5\u3057\u3001\u5909\u66f4\u4e88\u5b9a\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u304b\u3089\u5225\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u30b3\u30d4&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2019\/09\/windows-bat-collect-hierarchy-files-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/work-tools\/windows-bat-collect-hierarchy-files\/\">Windows\u30d0\u30c3\u30c1\u3068PowerShell\u3067\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u30921\u304b\u6240\u3078\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u6df1\u3044\u968e\u5c64\u306e\u30d5\u30a1\u30a4\u30eb\u30921\u304b\u6240\u3078\u96c6\u3081\u308b\u305f\u3081\u3001\u5143\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u6b8b\u3057\u305f\u307e\u307e\u5225\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002 BAT\u304b\u3089PowerShell\u3092\u8d77\u52d5\u3057\u3001\u53ce\u96c6\u4e88\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u30b3\u30d4\u30fc\u3059\u308b\u65b9&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/04\/windows-file-structure-list-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/work-tools\/windows-file-structure-list\/\">Windows\u2502\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u56f3\u306e\u66f8\u304d\u65b9\uff5ctree\u30b3\u30de\u30f3\u30c9\u3067\u51fa\u529b\u3059\u308b<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Windows\u306etree\u30b3\u30de\u30f3\u30c9\u3067\u3001\u6307\u5b9a\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u30fc\u4ee5\u4e0b\u306e\u69cb\u6210\u56f3\u3092\u4f5c\u308c\u307e\u3059\u3002 README\u3078\u8cbc\u308b\u56f3\u306ftree\u3001Excel\u306a\u3069\u3067\u4e26\u3079\u66ff\u3048\u308b\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u306fdir\u3084CSV\u306b\u5206\u3051\u3066\u51fa\u529b\u3057\u307e\u3059\u3002 \u5bfe&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/work-tools\/wp-content\/uploads\/2020\/02\/windows-bat-get-image-name-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/work-tools\/windows-bat-get-image-name\/\">Windows\u30d0\u30c3\u30c1\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u753b\u50cf\u540d\u3092\u53d6\u5f97\u3059\u308b\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">PNG\u753b\u50cf\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u660e\u793a\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002 \u307e\u305a\u753b\u9762\u304bUTF-8\u306e\u30c6\u30ad\u30b9\u30c8\u3078\u51fa\u529b\u3057\u3001\u5fc5\u8981\u306a\u3068\u304d\u306b\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u3078\u30b3\u30d4\u30fc\u3067\u304d\u307e&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:end -->\n\n\n<h2 class=\"wp-block-heading\">\u624b\u5165\u529b\u3068Excel\u3067\u306e\u30b3\u30de\u30f3\u30c9\u751f\u6210\u306e\u4f7f\u3044\u5206\u3051<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u3061\u3089\u3082\u6700\u7d42\u7684\u306a\u4f5c\u6210\u306fBAT\u3067\u884c\u3044\u307e\u3059\u3002\u540d\u524d\u304c\u5c11\u306a\u3051\u308c\u3070\u76f4\u63a5\u8a18\u5165\u3057\u3001\u591a\u3051\u308c\u3070Excel\u3067md\u306e\u884c\u3092\u751f\u6210\u3057\u307e\u3059\u3002Excel\u306e\u8cbc\u308a\u4ed8\u3051\u7d50\u679c\u3092\u5b9f\u884c\u524d\u306b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>\u307e\u305a\u3001\u4f5c\u308b\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u6570\u3092\u78ba\u8a8d\u3059\u308b\u30023\u3064\u7a0b\u5ea6\u306a\u3089\u3001\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u4f8b\u306e\u3088\u3046\u306b\u30011\u884c\u306b\u3064\u304d1\u3064\u306emd\u30b3\u30de\u30f3\u30c9\u3092\u3001BAT\u306b\u66f8\u304f\u3002<\/li>\n\n\n\n<li>\u540d\u524d\u306b\u7a7a\u767d\u3084\u8a18\u53f7\u304c\u3042\u308b\u3068\u304d\u306f\u3001\u4e8c\u91cd\u5f15\u7528\u7b26\u3067\u56f2\u3080\u3002!\u306f\u9045\u5ef6\u5c55\u958b\u3092\u7121\u52b9\u306b\u3057\u3066\u4fdd\u6301\u3057\u3001BAT\u306b\u6587\u5b57\u3068\u3057\u3066%\u3092\u66f8\u304f\u5834\u5408\u306f%%\u3068\u3059\u308b\u3002\u30d1\u30b9\u533a\u5207\u308a\u3084Windows\u3067\u4f7f\u3048\u306a\u3044\u6587\u5b57\u3001CON\u306a\u3069\u306e\u4e88\u7d04\u540d\u306f\u5165\u529b\u3057\u306a\u3044\u3002<\/li>\n\n\n\n<li>BAT\u306f\u3001UTF-8\uff08BOM\u306a\u3057\uff09\u3067create.bat\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001chcp 65001\u306e\u884c\u3092\u5165\u308c\u308b\u3002\u62e1\u5f35\u5b50\u304ccreate.bat.txt\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u3082\u78ba\u8a8d\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u540d\u524d\u304c\u591a\u3044\u306a\u3089\u3001Excel\u3067\u3001B1\u4ee5\u964d\u306b1\u884c1\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3092\u5165\u529b\u3057\u3001C1\u306e\u6570\u5f0f\u3067md\u30b3\u30de\u30f3\u30c9\u306e\u5217\u3092\u4f5c\u308b\u3002C\u5217\u306e\u7d50\u679c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u30e1\u30e2\u5e33\u306b\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u308b\u3002<\/li>\n\n\n\n<li>CSV\u3068\u3057\u3066\u4fdd\u5b58\u305b\u305a\u3001\u5b8c\u6210\u3057\u305f\u30b3\u30de\u30f3\u30c9\u5217\u3092\u3001UTF-8\uff08BOM\u306a\u3057\uff09\u306eBAT\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001\u7df4\u7fd2\u7528\u306e\u6570\u4ef6\u3067\u8a66\u3057\u3066\u304b\u3089\u3001\u672c\u756a\u306e\u540d\u524d\u3067\u5b9f\u884c\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u5931\u6557\u3057\u305f\u3068\u304d\u306f\u3001\u65b0\u3057\u3044\u7a7a\u306e\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3084\u308a\u76f4\u3059\u3002\u540c\u540d\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u3042\u308b\u3068\u3001md\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u3001\u30b3\u30fc\u30c9\u4f8b\u306f\u305d\u3053\u3067\u505c\u6b62\u3059\u308b\u3002<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e2\u5b58\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u524a\u9664\u3055\u308c\u307e\u305b\u3093\u3002\u623b\u3059\u3068\u304d\u306f\u3001\u7df4\u7fd2\u3067\u4f5c\u3063\u305f\u7a7a\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3060\u3051\u3092\u3001\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u6210\u3057\u305fmd\u30b3\u30de\u30f3\u30c9\u3092BAT\u3078\u8cbc\u308a\u4ed8\u3051\u3001\u4f5c\u6210\u5148\u3068\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff1aWindows\u30d0\u30c3\u30c1\u3067\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u308b\u3068\u304d\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u3001\u307e\u3068\u3081\u3066\u4f5c\u308b\u306b\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1\u884c\u306b\u3064\u304d1\u3064\u306emd\u30b3\u30de\u30f3\u30c9\u3092\u7528\u610f\u3057\u3066\u3001BAT\u306b\u66f8\u304d\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002\u540d\u524d\u306e\u7a7a\u767d\u3084&#038;\u306f\u3001\u4e8c\u91cd\u5f15\u7528\u7b26\u3067\u56f2\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CSV\u306e\u62e1\u5f35\u5b50\u3092BAT\u306b\u5909\u3048\u308b\u3060\u3051\u3067\u5b9f\u884c\u3057\u3066\u3082\u3088\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002CSV\u306f\u5f15\u7528\u7b26\u3092\u91cd\u306d\u3066\u4fdd\u5b58\u3059\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u5b8c\u6210\u3057\u305f\u30b3\u30de\u30f3\u30c9\u5217\u3092\u3001\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u540c\u3058\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u3042\u308b\u3068\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">md\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u3001\u30b3\u30fc\u30c9\u4f8b\u306f\u305d\u3053\u3067\u505c\u6b62\u3057\u307e\u3059\u3002\u65b0\u3057\u3044\u7a7a\u306e\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3001\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u9014\u4e2d\u307e\u3067\u4f5c\u3089\u308c\u305f\u3068\u304d\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e2\u5b58\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u306f\u524a\u9664\u3055\u308c\u307e\u305b\u3093\u3002\u4f5c\u6210\u5148\u3092\u78ba\u8a8d\u3057\u3066\u3001\u5fc5\u8981\u306a\u540d\u524d\u3060\u3051\u3001\u518d\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e5\u672c\u8a9e\u306e\u540d\u524d\u304c\u6587\u5b57\u5316\u3051\u3059\u308b\u3068\u304d\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">UTF-8\uff08BOM\u306a\u3057\uff09\u3067BAT\u3092\u4fdd\u5b58\u3057\u3001chcp 65001\u306e\u884c\u304c\u3042\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u62e1\u5f35\u5b50\u304ccreate.bat.txt\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Excel\u306e\u6570\u5f0f\u3067\u3001\u30d5\u30eb\u30d1\u30b9\u3084\u6539\u884c\u3082\u5165\u308c\u3089\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3060\u3051\u3092\u6271\u3044\u307e\u3059\u3002\u30bb\u30eb\u306b\u30d5\u30eb\u30d1\u30b9\u3084\u6539\u884c\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u7528\u9014\u306b\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Excel\u306e\u540d\u524d\u30ea\u30b9\u30c8\u304b\u3089\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u308b\u3068\u304d\u306f\u30011\u884c\u306b\u3064\u304d1\u3064\u306emd\u30b3\u30de\u30f3\u30c9\u3092\u7528\u610f\u3057\u307e\u3059\u3002 CSV\u306f\u5f15\u7528\u7b26\u3092\u91cd\u306d\u3066\u4fdd\u5b58\u3059\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u62e1\u5f35\u5b50\u3092BAT\u3078\u5909\u3048\u308b\u3060\u3051\u3067\u5b9f\u884c\u305b\u305a\u3001\u5b8c\u6210\u3057\u305f\u30b3\u30de\u30f3\u30c9\u5217\u3092\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u8cbc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12164,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","ssp_meta_description":"Excel\u306e\u4e00\u89a7\u3068md\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066bat\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u8907\u6570\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4e00\u62ec\u751f\u6210\u3059\u308b\u624b\u9806\u3092\u89e3\u8aac\u3002\u540d\u524d\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u542b\u3080\u5834\u5408\u306e\u5bfe\u51e6\u6cd5\u3068\u3057\u3066\u3001\u4e8c\u91cd\u5f15\u7528\u7b26\u3092\u4ed8\u4e0e\u3059\u308bExcel\u6570\u5f0f\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","ssp_meta_title":"bat\u3067\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210\u3092\u4e00\u62ec\u3067\u884c\u3046\u65b9\u6cd5\uff01Excel\u9023\u643a\u624b\u9806","ssp_meta_robots":"","ssp_meta_canonical":"","ssp_meta_image":"","ssp_meta_keyword":"","book_review_data":"","footnotes":""},"categories":[23,20],"tags":[],"class_list":["post-12157","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-bat","category-work"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/posts\/12157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/comments?post=12157"}],"version-history":[{"count":12,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/posts\/12157\/revisions"}],"predecessor-version":[{"id":24285,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/posts\/12157\/revisions\/24285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/media\/12164"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/media?parent=12157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/categories?post=12157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/tags?post=12157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}