home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / misc_programming / batnmore.z!p / AUTOEXEC.BAT < prev    next >
DOS Batch File  |  1992-11-15  |  2KB  |  64 lines

  1. *REM This batch file is Freeware, free to use and redistribute unmodified *
  2. *REM Jouni Miettunen * jon@stekt.oulu.fi * Oulu * Finland * Europe * 1992 *
  3.  
  4. :load carefully prepared default settings..
  5. set /r \4dos\environ.txt
  6. alias /r \4dos\alias.txt
  7. history /r \4dos\history.txt
  8.  
  9. : I use default Code Page 437, don't have to change anything
  10. :mode con cp prepare=((437) c:\dos\ega.cpi) >nul
  11. :mode con cp select=437 >nul
  12.  
  13. : Finnish keyboard, enchanced
  14. keyb su,437,c:\dos\keyboard.sys /e
  15.  
  16. : A fancy and more readable font than the default vga font.
  17. : fntcol13.zip & fntutl14.zip by Yossi Gil. Great!
  18. @\etc\loadfont \etc\decorate.f16
  19.  
  20. : Speed keyboard typematic rate (eg. for scrolling w/cursor keys).
  21. mode con rate=32 delay=1
  22.  
  23. : clear memory
  24. set command=
  25.  
  26. : place tsr's here. The order *does* matter.
  27. @\4dos\kstack >nul
  28.  
  29. : put fortune in prompt (4tune 2.60 by Luca Favaro) (not a TSR).
  30. @c:\etc\4tune /p c:\tekstit\tune >nul
  31.  
  32. : Control-P freezes my computer, no printer connected.
  33. : Replace "ctrl-p" with "Insert Insert". Summary: nothing happens.
  34. : Note: have to be reenabled for programs that use control-p.
  35. @echo 0;82;0;82p
  36.  
  37. : Turn NumLock OFF at start-up by John Steele (finally...)
  38. @\etc\nonum2
  39.  
  40. : General housekeeping
  41. @*cd relax
  42. @set path=%path%;c:\relax
  43. @cls
  44.  
  45. : I use /F option with COMSPEC and got fooled once. No more. Now I'll know
  46. : it's *ON* and all I have to do is to remember what it *means*. B-)
  47. @echo.
  48. @echo e[0;1;5;31;40m
  49. @echo               ╔═════════════════════════════════════════════════╗
  50. @echo               ║ e[0;1;37;40mNote: disk drive error messages e[33m*are*e[37m disabled. e[5;31;40m║
  51. @echo               ╚═════════════════════════════════════════════════╝
  52. @echos e[0m
  53.  
  54.  
  55. : Check what's happening in this month (cal 2.4 by Alex Matulich)
  56. @cal
  57. : Note: test below works with european date format dd-mm-yy
  58. : Note: if day is over 25 show next month's calender, too. If it's December
  59. : show next year's January. Does not go beyond 1999. B-)
  60. @if %@substr[%_date,0,2] gt 25 cal %@eval[(%@substr[%_date,3,2]+1)%%12] 19%@eval[%@substr[%_date,6,2]+%@int[%@eval[(%@substr[%_date,3,2]+1)/13]]]
  61.  
  62. : DOS Critical error Handler 1.13 by Patrick Philippot and David Frey
  63. @c:\etc\4dos24h >& nul
  64.