At 23:41 2002-10-18, Robert Tweed wrote:

No, there is a difference. > is the "standard" redirect operator in DOS, and
overwrites the specified file. >> appends data, rather than overwriting the
file. I've never encountered >> in DOS before Mark mentioned it, so I don't
know if it works with old versions, but I do know that > goes right back to
version 1 (I was using it in version DOS 3.3 anyway).
It goes back as far as I can recall (became DOS savvy with 3.3). I used to create entire menus with batch files and edlin scripts that could create dynamic menus on the fly. With ANSY.SYS graphics and colors, of course! For quickie text or bat files I seem to remember trapping STDIN with the >> redirect. Something like:

copy * >>somefile.txt

And hitting ^F6 to save the file and return STDIN to the console (or keyboard)? The memories fade soooo fast.

If I didn't learn >> in a DOS book or one of Peter's books, I probably got it from the old Power DOS book - which just hit the dumpster last month!

P.S. It's nice to see my messages getting here in reasonable time again. For the longest time here, my messages lagged so far behind that digest readers' responses showed up before mine.


--
Mark A. Boyd
Keep-On-Learnin' :)

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]


Reply via email to