Articles

Solved Vbscript to insert a + symbol into a text line

December 22, 2012 at 01:51:10
Specs: Windows 7

sir ,

i have a text file which contain hundreds of line . ie....

Dec 15, 2012 03:44:41 +88888888888 8888888888888 888888888888888

Suggest me a vbscript that inserts a + symbol the start of the numbers in all the lines ie...

Dec 15, 2012 03:44:41 +88888888888 +8888888888888 not in this placexx

pl help..

thanx in advance..

Wishing you a Merry Christmas....


See More: Vbscript to insert a + symbol into a text line

Report •


#1
December 22, 2012 at 06:46:37
✔ Best Answer

If you don't disregard a batch script, the following does the job

@echo off
for /F "tokens=1-6,*" %%a in ('type "MyFile.txt"') do (
  echo.%%a %%b %%c %%d %%e +%%f %%g
) >> "MyFile.new"
del "MyFile.txt"
ren "MyFile.new" "MyFile.txt"


Report •
Related Solutions


Ask Question