{"id":13526,"date":"2021-12-13T11:07:32","date_gmt":"2021-12-13T11:07:32","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=13526"},"modified":"2021-12-13T11:08:08","modified_gmt":"2021-12-13T11:08:08","slug":"batch-to-search-all-drives-for-specified-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-to-search-all-drives-for-specified-file\/20964.html","title":{"rendered":"Batch To Search All Drives For Specified File"},"content":{"rendered":"<p>Hello, I want to create a batch file that scans all my drives for &#8220;basecontent.7z&#8221; and extract all content of archive to directory where the batch file has been executed from. Here is what I have so far and it isn&#8217;t refined. Now It works only if the archive is placed anywhere within the same drive as batch file.<\/p>\n<p>for \/f &#8220;delims=&#8221; %%a in (&#8216;dir \/s \/b \\^|findstr.exe \/i \/c:&#8221;\\basecontent.7z&#8221;&#8216;) do 7za.exe x &#8220;%%a&#8221;&amp;&amp;goto; a<br \/>\n:a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":22},"question-category":[55],"question_tags":[],"class_list":["post-13526","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/13526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=13526"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=13526"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=13526"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=13526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}