Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
@echo offsetlocal enabledelayedexpansionREM batch strings are indexed starting at 0 REM first part starts at character index 0REM and is 804 characters long set firstpartlength=804REM last part starts at character index 805 (the 806th char)set lastpartstart=805if exist report2.txt del report2.txtfor /f "delims=" %%A in (report1.txt) do ( set string1=%%A echo !string1:~0,%firstpartlength%!!string1:~%lastpartstart%! >> report2.txt )