home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Gamer UK 6 / PCGAMER06.bin / bits / cheet / 1optip37.txt < prev    next >
Text File  |  1995-01-06  |  5KB  |  137 lines

  1. ~Today's Top DOS Tip
  2.  
  3. ~By Simon Burrows
  4.  
  5.  
  6. `For this  month's instalment of the 'Top Tips' section, I thought
  7. `I'd turn my eye to those of you, who, like me, have severe memory
  8. `problems whilst  trying to  run some  of the  more  memory-hungry
  9. `software on  the market.  I've found  that quite  a bit  of  this
  10. `software doesn't  necessarily need  to have a mouse driver loaded
  11. `for it to work, so, obviously, a good way to free up memory is to
  12. `not load it in the first place.  However, if you state the driver
  13. `in your AUTOEXEC.BAT file like nearly everybody else, there is no
  14. `easy way of not loading it when you don't need to; that is, until
  15. `now...
  16. `
  17. `I've designed  a little  system where  the user  is  prompted  on
  18. `whether or  not he wants to load the mouse driver, every time the
  19. `PC is  turned on.  The system  isn't too complicated, although it
  20. `does involve  editing the  dreaded AUTOEXEC.BAT file to get it up
  21. `and running.   When it does work, however, it's as easy as pie to
  22. `use, and, as far as I can see, is completely fool-proof too!
  23. `
  24. ~`The system I'm talking about uses a small file called CHOICE.COM
  25. ~`which  comes  with  all  versions  of  DOS  from  v6.0  upwards.
  26. ~`Unfortunately, there is no such program in DOS v5.0, so you will
  27. ~`have to  either stick  without it, or design a more crude method
  28. ~`of the system yourself.
  29. `
  30. `Basically, the  idea is  simple.   Go into your main hard drive's
  31. `root directory   (nearly  always C:\), and make a back-up of your
  32. `AUTOEXEC.BAT file by typing "COPY AUTOEXEC.BAT AUTOEXEC.BAK". Now
  33. `edit the  file AUTOEXEC.BAT  by typing  "EDIT C:\AUTOEXEC.BAT" at
  34. `the command  line.  Next, use the up and down cursors to scan the
  35. `file  to   find  a   line   that   reads   C:\DOS\MOUSE.COM,   or
  36. `C:\WINDOWS\MOUSE.COM or  D:\WINDOWS\MOUSE.COM, and,  once  you've
  37. `found it, delete it.
  38.  
  39. `You're now  ready to  insert the mouse-driver-loader-system lines
  40. `into the  AUTOEXEC.BAT file.   Where in the AUTOEXEC.BAT file the
  41. `lines go  can vary  from machine  to machine.   Basically, if the
  42. `DOSSHELL or  some other  'menu system'  loads automatically  each
  43. `time you switch your PC on, then the lines needed to do that must
  44. `be left  at the  bottom of  your AUTOEXEC.BAT.   In  those cases,
  45. `insert  the   following  lines   just  above   the  bottom  line.
  46. `Otherwise, the  following info can be inserted straight in at the
  47. `bottom of the file.
  48.  
  49. `When you know where you are inserting the lines, go to that area
  50. `of the file then copy the following text down, exactly as it is
  51. `shown here :-
  52.  
  53.  
  54. ~:LOAD_MOUSE
  55. ~@ECHO OFF
  56. ~@CLS
  57. ~@CHOICE /N Do you now wish to load the mouse driver "MOUSE.COM"?
  58.  
  59. ~IF ERRORLEVEL 255 GOTO ERROR
  60. ~IF ERRORLEVEL 2 GOTO NO
  61. ~IF ERRORLEVEL 1 GOTO YES~IF ERRORLEVEL 0 GOTO BREAK
  62.  
  63. ~:YES
  64. ~@CLS
  65. ~@C:\DOS\MOUSE.COM
  66. ~@GOTO END
  67.  
  68. ~:NO
  69. ~@CLS
  70. ~@GOTO END
  71.  
  72. ~:BREAK
  73. ~@CLS
  74. ~@ECHO Don't press CTRL+BREAK or CTRL+C you silly fool!
  75. ~@ECHO If you don't want to load the mouse driver, just press 'N'!
  76. ~@PAUSE >NUL
  77. ~@GOTO LOAD_MOUSE
  78.  
  79. ~:ERROR
  80. ~@ECHO Whoooops!
  81. ~@ECHO.
  82. ~@ECHO Press any key to crash the mouse-load system...
  83. ~@PAUSE >NUL
  84. ~@GOTO LOAD_MOUSE
  85.  
  86. ~:END
  87. ~ECHO.
  88.  
  89.  
  90. `Now.   If you  entered the  text right at the bottom of the file,
  91. `then it  is now ready to go.  If, however, you put it one line up
  92. `from the  bottom because  the bottom line loaded a menu-system or
  93. `DOSSHELL, put the line to load these directly under the line that
  94. `reads "ECHO."  at the  bottom of  the text you just typed in, and
  95. `then it'll all be finished.
  96. `
  97. `If you  now reset  your PC,  you should  see the  new  set-up  in
  98. `action.   When the other tasks in your AUTOEXEC.BAT are complete,
  99. `the screen  should clear and a message asking whether you want to
  100. `load the mouse driver should appear the top of the screen.  There
  101. `are now a few options :-
  102. `
  103. `■  If you  do  want  to load  the mouse driver, then press Y, the
  104. `   screen will  clear again, the mouse driver will load, then the
  105. `   file ends.
  106. `
  107. `■  If you  don't want to load the mouse driver, you press N, the
  108. `   screen clears, and the file ends.
  109. `
  110. `■  If you press CTRL+BREAK which would normally  stop everything,
  111. `   you will be asked if you want to  terminate the batch job.  If
  112. `   you press 'Y', you get dumped straight back to DOS, and if you
  113. `   press 'N',  then you'll  get given a message about the  proper
  114. `   way to quit the mouse-load system, then the system will reload.
  115. `
  116. `■  If you press any other  key then a warning beep will sound and
  117. `   you'll get another chance to enter your choice.
  118.  
  119. `■  And, finally,  if there is some other  unknown error, a little
  120. `   warning message will come up, and the system will stop.
  121.  
  122.  
  123. `If  this  does  not  work,  then  there  must  be  some  conflict  
  124. `between software, or  some  other  error.  I  cannot go  into the 
  125. `possibilities  now  except that  you could  check  that  the file 
  126. `MOUSE.COM is stored in your C:\DOS directory like my system tells 
  127. `your PC it does.If not edit the appropriate line. If that doesn't  
  128. `make any difference then you will have to delete the AUTOEXEC.BAT 
  129. `file, then  reinstate  the  backup  of  it you  made  by  typing: 
  130. `"REN AUTOEXEC.BAK AUTOEXEC.BAT".
  131.  
  132.  
  133. ~Well, that's all folks, keep smilin'...
  134.  
  135.  
  136. ~Simon Burrows
  137.