{"id":113,"date":"2021-09-03T01:59:06","date_gmt":"2021-09-03T01:59:06","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/security-batch-code-to-list-the-contents-of-a-folder-35029-html"},"modified":"2021-09-03T03:05:47","modified_gmt":"2021-09-03T03:05:47","slug":"security-batch-code-to-list-the-contents-of-a-folder-35029-html","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/security\/batch-code-to-list-the-contents-of-a-folder\/35029.html","title":{"rendered":"batch code to list the contents of a folder"},"content":{"rendered":"<p>I need a batch code to list the contents of a folder. Except I need it to exclude the files file1.bat, file3.bat, and file6.bat. I&#8217;m using the code &#8220;dir C: \/B\/S\/A:-D&gt;list.txt&#8221; and I get<\/p>\n<p>file1.bat<br \/>\nfile2.bat<br \/>\nfile3.bat<br \/>\nfile4.bat<br \/>\nfile5.bat<br \/>\nfile6.bat<\/p>\n<p>but I want it to read<\/p>\n<p>file2.bat<br \/>\nfile4.bat<br \/>\nfile5.bat<\/p>\n<p>can I have some help.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":8},"question-category":[53],"question_tags":[],"class_list":["post-113","question","type-question","status-publish","hentry","question-category-office"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/113","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=113"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=113"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}