Search found 1 match
- 09 Jun 2020 03:27
- Forum: DOS Batch Forum
- Topic: Batch delete first 67 character all text file in folder
- Replies: 2
- Views: 3310
Batch delete first 67 character all text file in folder
Hi :) I'm trying to remove the first 67 characters and here's what I've got so far: @echo off & setlocal enabledelayedexpansion set "txt=*.txt" set N= for /f "tokens=* delims= " %%a in ('type "!txt!"') do ( set /a N+=1 if !N! lss 3 set S=!S!%%a ) > Result.txt echo.!S:~67! for /f "tokens=* skip=2 del...