Computing.Net > Forums > Programming > Batch prepend

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch prepend

Reply to Message Icon

Name: KaZy
Date: November 11, 2004 at 19:34:38 Pacific
OS: XPpro
CPU/Ram: P3 3.6
Comment:

Hi :)

Any1 know how i can prepend this text to my file? "Hello Kaz!" i know append is like this...
Echo Hello Kaz >>Kaz.txt
But is there a way i can prepend that txt?

Thanx an Bye ;)



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: November 11, 2004 at 22:34:01 Pacific
Reply:

There's no prepend, per se, but you can put the string into a file like thus:

echo Hello Kaz > Hello.txt

then:

type kaz.txt >> hello.txt

M2


0

Response Number 2
Name: wizard-fred
Date: November 11, 2004 at 22:45:39 Pacific
Reply:

copy hello.txt+file.txt file.txt

where hello.txt is file containg 'Hello Kaz' and file.txt is file you want to be added to the beginning.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch prepend

Simple Batch - prepend filename www.computing.net/answers/programming/simple-batch-prepend-filename/14614.html

Batch file to count a specific character in a www.computing.net/answers/programming/batch-file-to-count-a-specific-character-in-a/19751.html

Collect Antivirus info via batch www.computing.net/answers/programming/collect-antivirus-info-via-batch/20104.html