Solved how to delete the 8th char from each line

September 30, 2015 at 11:15:30
Specs: Windows 7
I need to delete the 8th char of each line. It is a comma.
12345678,1,19
I need it to look like this.
123456781,19

See More: how to delete the 8th char from each line

Report •


#1
September 30, 2015 at 20:45:04
✔ Best Answer
Call me crazy; the 8th char looks like an 8.


::====== script starts here ===============
::
:: jpark.bat 2015-10-01 10:29:25.38
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

:main
for /f "tokens=* delims= " %%a in (myfile) do (
set S=%%a
set H=!S:~0,7!
set T=!S:~8!
echo.!H!!T!
)>> NEWFILE
goto :eof
::====== script ends here =================

=====================

M2 Get custom script or take private lessons


Report •

#2
October 1, 2015 at 07:33:13
I will give it a try. Thank you!

Report •
Related Solutions


Ask Question