Search found 1 match
- 2023-Jan-03, 1:04 pm
- Forum: Windows CMD Shell
- Topic: Read a file, output each line to a new file, preserve all characters?
- Replies: 8
- Views: 6563
Re: Read a file, output each line to a new file, preserve all characters?
Have you tried something like this approach? setlocal disabledelayeexpansion set /a count=0 for /f "useback tokens=* delims=" %%L in ("your_file.txt") do ( set "line=%%L" call :write_file ) goto :EOF :write_file set /a "count+=1" REM your conditional changes ...