Problem with search and replace batch file

前端 未结 3 388
慢半拍i
慢半拍i 2021-01-15 11:58

I have an XML file and I have a batch file to search for a specific string within that file, replace it with a string defined by the user and then output it to a new XML fil

3条回答
  •  不思量自难忘°
    2021-01-15 12:36

    You need to create the empty file entities_1.xml, because for some obscure reason >> won't create it with cmd as shell.
    So use TYPE NUL > entities_1.xml just before your FOR loop, to create a zero-byte long file.

提交回复
热议问题