{"id":7183,"date":"2021-11-23T10:22:53","date_gmt":"2021-11-23T10:22:53","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=7183"},"modified":"2021-11-23T10:23:20","modified_gmt":"2021-11-23T10:23:20","slug":"how-can-i-create-a-batch-to-remove-extra-header-rows","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/how-can-i-create-a-batch-to-remove-extra-header-rows\/30062.html","title":{"rendered":"How Can I Create A Batch To Remove Extra Header Rows?"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I have a batch file that combines multiple CSV files that have similar file names. How do I add a script to remove the extra header rows?<\/p>\n<p>This is what I currently have. It runs with no issues, I want to keep the 1st row as header, but remove the extra header rows that result from the multiple CSV files.<\/p>\n<p>copy \\\\MI\\Master\\Export\\recondata*.csv &#8220;\\\\MI-MKE-GOV\\RCP_Master\\Export\\recondata all import.csv&#8221;<br \/>\ncopy \\\\MI\\Master\\Export\\aged_items*.csv &#8220;\\\\MI-MKE-GOV\\RCP_Master\\Export\\aged_items all import.csv&#8221;<\/p>\n<p>Pause<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":2},"question-category":[55],"question_tags":[],"class_list":["post-7183","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\/7183","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=7183"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=7183"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=7183"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=7183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}