home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / misc / 6032 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!chx400!news.unige.ch!ugsc2a!fisher
  3. From: fisher@sc2a.unige.ch
  4. Subject: Re: echo >> gives erroneous results
  5. Message-ID: <1992Nov6.122053.1@sc2a.unige.ch>
  6. Lines: 24
  7. Sender: usenet@news.unige.ch
  8. Organization: University of Geneva, Switzerland
  9. References: <1992Oct22.160130.28244@galileo.cc.rochester.edu> <1992Oct23.225646.6288@rei.com>
  10. Date: Fri, 6 Nov 1992 10:20:53 GMT
  11.  
  12. In article <1992Oct23.225646.6288@rei.com>, fox@rei.com (Fuzzy Fox) writes:
  13. > eric@prodigal.psych.rochester.edu (Eric Hansen) writes:
  14. >>I have the following command in a batch file:
  15. >>echo ccc >> c:\autoexec.bat
  16. >>This *should* append the string "ccc" to the end of the autoexec.bat file
  17. >>in root dir of my c drive.  Instead, it does nothing.
  18. > Does AUTOEXEC.BAT have a Ctrl-Z character at the end?
  19.  
  20. Probably...
  21.  
  22. The solution to trick DOS into removing it is to use:
  23.  
  24.     echo ccc > to_add.tmp
  25.     copy autoexec.bat + to_add.tmp
  26.     del to_add.tmp
  27.  
  28. This should work regardless of the number of ^Z in the file, but
  29. everything after the last ^Z will be lost, of course!
  30.  
  31. Markus Fischer    Dpt of Anthropology, Geneva CH    fisher@sc2a.unige.ch
  32.