{"id":5808,"date":"2021-11-17T04:33:17","date_gmt":"2021-11-17T04:33:17","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=5808"},"modified":"2021-11-17T04:37:38","modified_gmt":"2021-11-17T04:37:38","slug":"for-loop-over-hidden-files","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/for-loop-over-hidden-files\/20814.html","title":{"rendered":"For Loop Over Hidden Files"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I was trying to write a for loop to recursively go over all the files in a specified directory:<\/p>\n<p>FOR \/R %1 %%i in (*) do call batch.bat %%i<\/p>\n<p>My only problem is that it ignores hidden files.<br \/>\nAny clues on how to include hidden files?<\/p>\n<p>Thanks<br \/>\n~Steve<\/p>\n<p>**Edit<\/p>\n<p>After some searching I found a way to display the names:<\/p>\n<p>DIR \/A\/OGN<\/p>\n<p>That doesn&#8217;t exactly help me though as the batch I call in the for loop doesn&#8217;t see the file when I pass it the name on its own.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":5},"question-category":[55],"question_tags":[],"class_list":["post-5808","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\/5808","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=5808"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=5808"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=5808"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=5808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}