Delete first X number of characters

June 18, 2010 at 03:40:51
Specs: Windows XP
I am new to writing batch files and wondered if anyone can help.

I need help writing a batch that will delete the first 14 characters from each line of a text file.


See More: Delete first X number of characters

Report •


#1
June 18, 2010 at 04:08:12
Sorry guys please ignore this request I realise I had already asked this question

Report •

#2
June 18, 2010 at 04:10:39
@echo off & setlocal EnableDelayedExpansion > "output.txt"
for /F "delims=" %%j in ('type "MyFile.txt"') do (
  set line=%%j
  set line=!line:~14!
  echo.!line!>> "output.txt"
)


Report •

Related Solutions


Ask Question