Computing.Net > Forums > Disk Operating System > Re-direct ">" info to a text file WITHOUT re-creating that text file

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.

Re-direct ">" info to a text file WITHOUT re-creating that text file

Reply to Message Icon

Name: Scott
Date: January 28, 2000 at 08:28:05 Pacific
Comment:

Greetings,
I'm trying to write a text batch file for NT that tracks user logins by creating a file called %username% evertime a user logs in. I then re-direct ">" that info to a .txt file as a psuedo user log. Problem is the ">" command re-creates that log file every time it's executed.
So, any ideas on how to get ">" to append a .TXT file without re-creating it???



Sponsored Link
Ads by Google

Response Number 1
Name: unisol
Date: January 28, 2000 at 11:06:28 Pacific
Reply:

Yes! Use >> (double >)
This will add one more line at the end of the file without recreating it


0
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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Re-direct ">" info to a text file WITHOUT re-creating that text file

Getting Contents of a Text File www.computing.net/answers/dos/getting-contents-of-a-text-file/13123.html

Environment Variable to a text file www.computing.net/answers/dos/environment-variable-to-a-text-file/16705.html

how to check IIS in a batch file www.computing.net/answers/dos/how-to-check-iis-in-a-batch-file/14346.html