{"id":376,"date":"2021-09-03T20:00:05","date_gmt":"2021-09-03T20:00:05","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/windows-7-batch-file-to-replace-text-string-1620-html"},"modified":"2021-09-03T20:00:05","modified_gmt":"2021-09-03T20:00:05","slug":"windows-7-batch-file-to-replace-text-string-1620-html","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/windows-7\/batch-file-to-replace-text-string\/1620.html","title":{"rendered":"Batch file to replace text string"},"content":{"rendered":"<td>\n<p>Hi all<\/p>\n<p>I am trying to write a file in batch but it needs to change the contents of a file, without changing any of the other information in it. What it needs to do is as follows;<\/p>\n<p>1. Needs to either be able to convert multiple lines at a time OR be able to skip to certain lines (no. 32 to be exact).<\/p>\n<p>2. Needs to change original text to new text. I will give them the following labels throughout this string to better undersstand you guys.<\/p>\n<p>Old text=&lt;old&gt;<br \/>New text=&lt;new&gt;<br \/>File Destination=&lt;dest&gt;<\/p>\n<p>Can anyone help me out please? Any help is appreciated. Thankyou all,<\/p>\n<p>Shanet<\/p>\n<\/td>\n<td>\n<p>You should post this in the Programming forum here:<\/p>\n<p><a href=\"http:\/\/www.computing.net\/forum\/programming\/1.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.computing.net\/forum\/prog&#8230;<\/a><\/p>\n<p><font size=\"2\" color=\"gray\">Home Page  <a href=\"http:\/\/ewen.uuuq.com\/\" target=\"_blank\" rel=\"noopener nofollow\">http:\/\/ewen.uuuq.com\/<\/a><\/font><\/p>\n<\/td>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":7},"question-category":[],"question_tags":[],"class_list":["post-376","question","type-question","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/376","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=376"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=376"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}