I have to remove last 4 characters from each line of a text file.
So i created the Batch script referring to below solution
But this script is not solving my requirement.
@echo off & setlocal EnableDelayedExpansion > "fileOUT.txt"
for /F "delims=" %%j in ('type "fileIN.txt"') do (
echo line data:%%j
Source filename taken as:FileIN.txt
Data as :
expecting to get :
But above script resulting me
Please guide me on this.
message edited by Sunaj