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...
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> <...