Computing.Net > Forums > Programming > write test line into log file with

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.

write test line into log file with

Reply to Message Icon

Name: ThePuFF
Date: April 25, 2007 at 00:58:01 Pacific
OS: NT4
CPU/Ram: p3 866
Comment:

cant figure this out:-(
i know how to put a dir list into a text file but i cant firgure out what to do with this:
i want to write a word into a status.log file
it has to write it on the next line
in the text file there are allready some entry's
1
2
3
downloaded <--- this is what the batchfile must enter
so its no more then just a word (allways the same) on the next line

anyone can help me with this?

Txs Rintse



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: April 25, 2007 at 01:41:31 Pacific
Reply:

If you just want to append a line:

echo downloaded >> myfile



=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: ThePuFF
Date: April 25, 2007 at 01:49:40 Pacific
Reply:

txs for youre reply but that doesnt work, i tried that but because of several lines are filled allready with
XXX
XXX
XXX
and on the next line downloaded must be written.
the lines and after that will/must be filled again to.
with just a echo, it will empty all lines and put downloaded in it
that echo i figured out 10 minutes ago:-) but it has to go on the last empty line


0

Response Number 3
Name: Mechanix2Go
Date: April 25, 2007 at 05:36:54 Pacific
Reply:

I'm not with you yet. But if your file is this:

one
two
three

and you do:

echo new >> myfile, you will have:

one
two
three
new


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 4
Name: ThePuFF
Date: April 25, 2007 at 06:51:06 Pacific
Reply:

shoot i was trying with 1 > instead of 2

works perfect!! txs


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


PKZIP create problem VBS Search file & cop...



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: write test line into log file with

Put blank lines into text file www.computing.net/answers/programming/put-blank-lines-into-text-file/16667.html

Pull Multiple Lines into Text File www.computing.net/answers/programming/pull-multiple-lines-into-text-file/19807.html

VBScript help creating a log file www.computing.net/answers/programming/vbscript-help-creating-a-log-file-/14414.html