Search found 1 match
- 02 Jun 2019 02:19
- Forum: DOS Batch Forum
- Topic: Help for loop replace string
- Replies: 1
- Views: 3355
Help for loop replace string
This is my test.tmp file TEMPLATE = Test Test = \ Test1 \ Test2 This is my copy.bat file @echo off set oldText1=Test1 \ set oldText2=Test2 set newText1=newTest set newText2= setlocal enableDelayedExpansion for /F "tokens=1* delims=]" %%j in ('type "Test.tmp" ^| find /V /N ""') do ( if "%%k"=="" ( ec...