I have been racking my brain to figure out how to create something that will remove the following from .xml files.
I want to remove <?Pub Caret -*[0-999]?> and <?Pub Inc?>
Any suggestions out there?
Batch file to delete lines of text in an XML file
Moderator: DosItHelp
-
- Posts: 1
- Joined: 18 May 2017 07:28
Re: Batch file to delete lines of text in an XML file
Code: Select all
@echo off
findstr /V "<?Pub Caret -*[0-999]?>" "myPath\myfile.xml">>myNewFile.xml
findstr /V "<?Pub Inc?>" "myPath\myfile.xml">>myNewFile.xml
BatNoob