{"id":4786,"date":"2021-11-11T14:44:17","date_gmt":"2021-11-11T14:44:17","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=4786"},"modified":"2021-11-11T14:44:37","modified_gmt":"2021-11-11T14:44:37","slug":"solved-removing-carriage-returns-from-a-textfile","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/windows-xp\/removing-carriage-returns-from-a-textfile\/197677.html","title":{"rendered":"Solved Removing Carriage Returns From a Textfile"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I wrote a program that creates a textfile to be imported by a third party. I need to deploy my program to several machines and the problem I&#8217;m having is that the third party rejects my textfile because there are carriage returns and line feeds (0D 0A) at the end of every line. With all the stuff I&#8217;ve read, this appears to be the Windows standard. What I need to do is write a batch file that my program will call to strip out the carriage returns (0D) from all lines in my textflie. Because I need to deploy this to several machines and don&#8217;t want to install extra software on all these machines to accomplish this, is there a command in DOS that will allow me to do this?<\/p>\n<p>Thanks.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":3},"question-category":[76],"question_tags":[],"class_list":["post-4786","question","type-question","status-publish","hentry","question-category-windows-xp"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/4786","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=4786"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=4786"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=4786"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=4786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}