{"id":6275,"date":"2019-09-28T21:34:45","date_gmt":"2019-09-28T12:34:45","guid":{"rendered":"https:\/\/cg-method.com\/?p=6275"},"modified":"2019-09-28T21:34:45","modified_gmt":"2019-09-28T12:34:45","slug":"windows-bat-collect-hierarchy-files","status":"publish","type":"post","link":"https:\/\/cg-method.com\/work-tools\/windows-bat-collect-hierarchy-files\/","title":{"rendered":"Windows\u30d0\u30c3\u30c1\u2502\u968e\u5c64\u4e0b\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u53ce\u96c6\u3059\u308b\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb"},"content":{"rendered":"\n<p>\u4f55\u968e\u5c64\u3082\u5965\u6df1\u304f\u30d5\u30a1\u30a4\u30eb\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306b\u30d0\u30c3\u30c1\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u968e\u5c64\u4e0b\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u53ce\u96c6\u3059\u308b\u8aac\u660e<\/h2>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\u89aa\u30d5\u30a9\u30eb\u30c0\n\u3000\u3000L\u5b50\u30d5\u30a9\u30eb\u30c0\n\u3000\u3000\u3000\u3000L\u5b6b\u30d5\u30a9\u30eb\u30c0A\n\u3000\u3000\u3000\u3000\u3000LfileA_001.png\n\u3000\u3000\u3000\u3000L\u5b6b\u30d5\u30a9\u30eb\u30c0B\n         LfileB_001.png\n<\/code><\/pre><\/div>\n\n\n\n<p>\u89aa\u30d5\u30a9\u30eb\u30c0\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u3044\u305a\u308c\u304b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u3001<strong>\u53f3\u30af\u30ea\u30c3\u30af\uff1e\u9001\u308b\uff1e\u9078\u629e\u968e\u5c64\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u53ce\u96c6.bat\u3092\u5b9f\u884c<\/strong>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\u89aa\u30d5\u30a9\u30eb\u30c0\n\u3000LfileA_001.png\n\u3000LfileB_001.png\n<\/code><\/pre><\/div>\n\n\n\n<p>\u4f59\u8a08\u306a\u30d5\u30a9\u30eb\u30c0\u306f\u524a\u9664\u3055\u308c\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u304c\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u53ce\u96c6\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u968e\u5c64\u4e0b\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u53ce\u96c6\u3059\u308b\u30d0\u30c3\u30c1\u30b9\u30af\u30ea\u30d7\u30c8<\/h2>\n\n\n\n<p>\u9001\u308b\uff08Send To\uff09\u3067\u4f7f\u3046\u60f3\u5b9a\u3067\u3059\uff01<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>REM \u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\nfor \/r %~dp1 %%j in (*) do (  \n    move \/-y &quot;%%j&quot; %~dp1\n)  \n\nREM \u30d5\u30a9\u30eb\u30c0\u306e\u524a\u9664\nfor \/d %%i in (*) do (  \n    pushd .  \n    cd %%i  \n    popd  \n    rd \/s \/q &quot;%%i&quot;  \n)  <\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>move \/-y\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u91cd\u8907\u30d5\u30a1\u30a4\u30eb\u304c\u6709\u3063\u305f\u5834\u5408\u306f\u9078\u629e\u80a2\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u91cd\u8907\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u4e0a\u66f8\u304d\u3059\u308b\u304b\u4e00\u65e6\u6b62\u3081\u3066\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4fee\u6b63\u3057\u307e\u3057\u3087\u3046\u3002\n\n<\/li>\n\n\n\n<li> <span style=\"font-size: revert; background-color: var(--color_content_bg); color: var(--color_text); font-family: var(--swl-font_family); font-weight: var(--swl-font_weight); letter-spacing: var(--swl-letter_spacing,normal);\">\u901a\u5e38\u306e\u30d0\u30c3\u30c1\u304b\u3089\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u300c%~dp1\u300d\u3067\u306f\u306a\u304f\u300c%~dp0\u300d\u3068\u3057\u307e\u3057\u3087\u3046\u3002<\/span> <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>AE\u3067\u7d30\u304b\u304f\u30d5\u30a9\u30eb\u30c0\u308f\u3051\u3092\u3057\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u53ce\u96c6\u3092\u304b\u3051\u308b\u3068\u3001\u304b\u3048\u3063\u3066\u7d20\u6750\u3092\u63a2\u3057\u306b\u304f\u3044\u30c7\u30fc\u30bf\u304c\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30c7\u30fc\u30bf\u6574\u7406\u7528\u306b\u30d0\u30c3\u30c1\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30b7\u30f3\u30d7\u30eb\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f55\u968e\u5c64\u3082\u5965\u6df1\u304f\u30d5\u30a1\u30a4\u30eb\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306b\u30d0\u30c3\u30c1\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 \u968e\u5c64\u4e0b\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u53ce\u96c6\u3059\u308b\u8aac\u660e \u305f\u3068\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002 \u89aa\u30d5\u30a9\u30eb\u30c0\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6276,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[23,20],"tags":[],"class_list":["post-6275","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\/6275","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=6275"}],"version-history":[{"count":0,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/posts\/6275\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/media\/6276"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/media?parent=6275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/categories?post=6275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/work-tools\/wp-json\/wp\/v2\/tags?post=6275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}