how to add a text in a file

July 21, 2009 at 06:35:58
Specs: Windows Vista
i want to add a text say Hi before every line in a text file..
say if i have a file abc.txt
and its body contains
This is India
India is a great country
Its too cold over here.

i want my output of the file should be like
Hi This is India
Hi india is a great country
Hi its very cold over here.
Cn any1 help me regarding this.

See More: how to add a text in a file

Report •

July 29, 2009 at 05:26:12
first create user defined bullet numbering as to hi
then u can use the word hi in every line by applying that bullet

Report •

July 29, 2009 at 07:04:17
See below, is this ok?

open notepad, copy and paste below into file.

@echo off
@FOR /F %%a IN (c:\abc.txt) DO echo hi %%a

save file as c:\names.bat, ensure abc.txt is on the root of C:

open command prompt and type c:\names.bat and press enter.

You could pipe this out to a file if you like.

Report •

January 5, 2014 at 13:56:09
command not working plz chack

Report •

Related Solutions

Ask Question