Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a large file of text, with exactly 34 characters on each line.
I want to run a batch to remove the last 2 characters of each line so that I have 32 characters on each line.Been trying to do this for ages without success!

@echo off & setlocal EnableDelayedExpansion > "fileOUT.txt" for /F "delims=" %%j in ('type "FileIN.txt"') do ( set line=%%j echo.!line:~0,-2!>> "fileOUT.txt ) :: End_OF_Batch

![]() |
VBScript Help - Retrievin...
|
create vars from txtfile ...
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |