Computing.Net > Forums > Programming > Over write the contents to a file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Over write the contents to a file

Reply to Message Icon

Name: Gods
Date: October 20, 2009 at 02:21:15 Pacific
OS: Windows XP
CPU/Ram: 2.992 GHz / 1021 MB
Product: Dell / Optiplex gx270
Subcategory: Batch
Comment:

When i use the command echo %content% >> file.txt
I keep on appending the contents to the file, how do I overite the content , everytime i echo i have to overwrite the existing content.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: October 20, 2009 at 02:56:20 Pacific
Reply:

echo %content% > file.txt


=====================================
Helping others achieve escape felicity

M2


0

Response Number 2
Name: IVO
Date: October 20, 2009 at 02:58:13 Pacific
Reply:

  echo %content% > file.txt

By the way a short acknowledgment after a useful response may help to continue to get support.

0

Response Number 3
Name: Gods
Date: October 20, 2009 at 03:00:33 Pacific
Reply:

Thanks a lot Mechanix and IVO .. that was pretty quick :)


0
Reply to Message Icon

Related Posts

See More


Extracting URLs from an h... Reading space from a empt...


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Over write the contents to a file

i wanted to delete the content of a text file www.computing.net/answers/programming/i-wanted-to-delete-the-content-of-a-text-file/19673.html

XP batch script to rename files www.computing.net/answers/programming/xp-batch-script-to-rename-files/14608.html

Linking Hashtable to a File www.computing.net/answers/programming/linking-hashtable-to-a-file/11811.html