Search found 4 matches

by STAiNLESS
30 Jan 2022 16:27
Forum: DOS Batch Forum
Topic: Insert Text in Second Last Line of .xml
Replies: 6
Views: 6086

Re: Insert Text in Second Last Line of .xml

Thanks to both of you, I got what I needed.
So thanks :)
by STAiNLESS
30 Jan 2022 04:33
Forum: DOS Batch Forum
Topic: Insert Text in Second Last Line of .xml
Replies: 6
Views: 6086

Re: Insert Text in Second Last Line of .xml

It sure did, thanks so much :)
by STAiNLESS
28 Jan 2022 18:13
Forum: DOS Batch Forum
Topic: Insert Text in Second Last Line of .xml
Replies: 6
Views: 6086

Re: Insert Text in Second Last Line of .xml

Thanks for that reply, I am trying your first suggestion except failing as it also leaves out the opening <menu> tag. This is what I have gotten it down to so far for /F "tokens=*" %%i in ('type "PC Games.xml" ^|find /I /V "<^/menu>"') do (echo %%i>> temp.xml) To me it does not seem to be escaping t...
by STAiNLESS
25 Jan 2022 21:54
Forum: DOS Batch Forum
Topic: Insert Text in Second Last Line of .xml
Replies: 6
Views: 6086

Insert Text in Second Last Line of .xml

I have an xml file with <menu> </menu> opening\closing tags. I want to add lines of text before the last line (the closing </menu> tag). example: <?xml version="1.0"?> <menu> <header> <listname>PC Games</listname> <lastlistupdate>10/09/2021</lastlistupdate> <listversion>0.1</listversion> </header> <...