home *** CD-ROM | disk | FTP | other *** search
/ Cheet Sheets 1995 April/May / CHEET40.ZIP / 1UTOEXEC.TXT < prev    next >
Text File  |  1995-05-07  |  23KB  |  633 lines

  1. ~Writing Your Own AUTOEXEC.BAT
  2.  
  3.  
  4. By:  Simon Burrows  -and-  Alex Willmer
  5.  
  6.  
  7. `After our great guide to writing your own CONFIG.SYS file in issue
  8. `39 of Cheet Sheets, here's our promised guide aimed at tuning your
  9. `AUTOEXEC.BAT.  As well as setting a few options, your AUTOEXEC.BAT
  10. `is also  used to  automatically load  software such  as your mouse
  11. `driver, memory-resident  virus  checker  etc.    As  before,  this
  12. `document starts with some explanation and basic tips, then goes on
  13. `to explain  individual lines  which  can  be  inserted  into  your
  14. `AUTOEXEC.BAT.
  15.  
  16.  
  17.  
  18. ~`                  *              *             *
  19.  
  20.  
  21.  
  22.  
  23. ~`                     ════════════════════════
  24. ~`                     What is an AUTOEXEC.BAT?
  25. ~`                     ════════════════════════
  26.  
  27.  
  28. `Once your computer has finished looking through your CONFIG.SYS to
  29. `load some  important device  drivers and memory options, then it's
  30. `your turn  to tell  it what  you want  to do.   For  this you  use
  31. `commands.   Instead of  having to  type all  the commands that you
  32. `want each  time you  start your computer, you can put the commands
  33. `into a  file called  AUTOEXEC.BAT.   This  is  a  text  file  with
  34. `commands that  tell the  computer what to do.  The word 'AUTOEXEC'
  35. `means 'AUTOmatically  EXECute' which  means  the  file  will  load
  36. `itself each  time your  computer boots  itself up,  and the  'BAT'
  37. `file-extention means  it is  a batch  file    (simply  because  it
  38. `contains a batch of commands).
  39.  
  40.  
  41.  
  42.  
  43. ~`        ══════════════════════════════════════════════════
  44. ~`        What is a Batch File, and what does one look like?
  45. ~`        ══════════════════════════════════════════════════
  46.  
  47.  
  48. `A simple batch file might contain the following lines :-
  49.  
  50.  
  51. `     ECHO OFF
  52. `     D:
  53. `     CD\UTILS
  54. `     INSTALL.EXE
  55. `     C:
  56. `     CD\GAMES
  57.  
  58.  
  59. `As you  can see,  each line  of the  batch  file  has  a  separate
  60. `command.  Each of these commands could also be typed separately at
  61. `the DOS prompt, but by putting them all into a batch file, you can
  62. `execute all  these commands  in turn  just by  running this  batch
  63. `file.
  64.  
  65. `This particular  batch file  is called  INSTALL.BAT.  It tells the
  66. `computer to  go to  drive D:, change to the \UTILS directory, then
  67. `run the  file called  INSTALL.EXE.  When INSTALL.EXE finishes, the
  68. `batch file  then tells  the computer to change the drive to C: and
  69. `enter the \GAMES directory.
  70.  
  71. `Your AUTOEXEC.BAT  works in  exactly  the  same  way.    The  only
  72. `difference is,  as I've  said, that  it runs  itself when you boot
  73. `your machine  up.   Because your  AUTOEXEC.BAT is loaded once, and
  74. `only once,  each time your computer is booted up, it will often be
  75. `used to  load vital  software such  as your  mouse  driver,  virus
  76. `checker, disk cacher etc.
  77.  
  78.  
  79.  
  80.  
  81. ~`                           ════════════
  82. ~`                           Safety First
  83. ~`                           ════════════
  84.  
  85.  
  86. `Before you  do anything  to your  AUTOEXEC.BAT, you should back it
  87. `up.  To do this, you first need to get to the directory containing
  88. `this file.     This is done by entering the following two commands
  89. `at the DOS prompt, each one with an [ENTER] press after it :-
  90.  
  91.  
  92. `     C:
  93. `     CD\
  94.  
  95.  
  96. `This puts   you in  the root directory of your main hard-disk (the
  97. `location of your AUTOEXEC.BAT).  Now you can type the following to
  98. `make a back-up of your AUTOEXEC.BAT called AUTOEXEC.BAK :-
  99.  
  100.  
  101. `     COPY AUTOEXEC.BAT AUTOEXEC.BAK
  102.  
  103.  
  104. `Now it's   a very good idea to make a system-disk.  You don't have
  105. `to do  this, but  it can  save a lot of hassle if things go wrong!
  106. `To do  this, first   put a blank disk in drive 'A:', and then type
  107. `the following :-
  108.  
  109.  
  110. `     FORMAT A: /S
  111.  
  112.  
  113. `Now, if   you muck  up you  system, slap  this disk  in the drive,
  114. `restart your  computer, and  you will  be given a DOS prompt.  You
  115. `can then go about fixing the problem.
  116.  
  117. `If the   problem has  come about  because you  have messed up your
  118. `AUTOEXEC.BAT during   editing,  the  easiest  thing  might  be  to
  119. `recover the  back-up file  you made earlier.  To do this, type the
  120. `following :-
  121.  
  122.  
  123. `     COPY C:\AUTOEXEC.BAK C:\AUTOEXEC.BAT
  124.  
  125.  
  126.  
  127.  
  128. ~`                          ══════════════
  129. ~`                          Back to Basics
  130. ~`                          ══════════════
  131.  
  132.  
  133. `Now you  can safely edit your AUTOEXEC.BAT. To do this I recommend
  134. `you use  the MS-DOS program "MS-DOS Edit".  This is  found only in
  135. `versions of  MS-DOS, 5  or above.   If  you don't have this you'll
  136. `have   to   use  MS-DOS's  Edlin  which  is  far  inferior.    For
  137. `information about Edlin and Edit, consult your DOS manual.
  138.  
  139. `To use  MS-DOS Edit  to edit your AUTOEXEC.BAT, type the following
  140. `three commands, each with an [ENTER] press after them as before :-
  141.  
  142.  
  143. `     C:
  144. `     CD\
  145. `     EDIT AUTOEXEC.BAT
  146.  
  147.  
  148. `Don't be  lazy and  leave out  the ".BAT"  at the end of the third
  149. `command, otherwise MS-DOS Edit will open a new file for you called
  150. `just "AUTOEXEC.   " which won't work.
  151.  
  152.  
  153.  
  154.  
  155. ~`                 ═══════════════════════════════
  156. ~`                 How can I edit my AUTOEXEC.BAT?
  157. ~`                 ═══════════════════════════════
  158.  
  159.  
  160. `Once Edit  has loaded, a simple  (but very effective)  text editor
  161. `will  be   displayed,  listing   the  current   contents  of  your
  162. `AUTOEXEC.BAT.   As with  any word-processor,  you can move through
  163. `the text  with  the  cursor  keys    (or  the  mouse),  and  enter
  164. `information by moving the cursor to the required space and typing.
  165.  
  166. `Your AUTOEXEC.BAT  may look  something like  this, although  it is
  167. `likely to  have far fewer lines if this is the first time you have
  168. `edited it :-
  169.  
  170.  
  171. ~`     @ECHO OFF
  172. ~`     PROMPT $P$G
  173. ~`     PATH C:\;C:\WINDOWS;C:\DOS;C:\MOUSE;
  174. ~`     SET TEMP=C:\TEMP
  175. ~`     SET DIRCMD=/ON
  176. ~`     SET BLASTER=A220 I5 D1 T4
  177. ~`     C:\MOUSE\MOUSE.COM
  178. ~`     C:\WINDOWS\SMARTDRV.EXE /X 1024 512
  179. ~`     C:\DOS\MSCDEX.EXE /D:MSCD000
  180. ~`     C:\DOS\DOSKEY
  181. ~`     C:\DOS\VSAFE.EXE
  182.  
  183.  
  184. `Those lines  starting with the path name of a file  (the last five
  185. `lines)  all load up software which could easily be loaded from the
  186. `DOS prompt.   The first 6 lines, however, are not loading software
  187. `but issuing  commands, although  these lines could also be entered
  188. `at the DOS prompt as with any line in a batch file.
  189.  
  190.  
  191.  
  192.  
  193. ~`                ═════════════════════════════════
  194. ~`                Writing and Editing AUTOEXEC.BATs
  195. ~`                ═════════════════════════════════
  196.  
  197.  
  198. `AUTOEXEC.BAT files,   as  I have  already said,  are made-up  of a
  199. `series of lines, each of which do their own job.  The rest of this
  200. `document is aimed at helping you understand each line.
  201.  
  202.  
  203.  
  204. ~`The "Echo" Command
  205. ~`──────────────────
  206.  
  207. `This line  is not actually needed to load any software but it is a
  208. `command used  to preserve  sanity!!  Normally when you run a batch
  209. `file, DOS  will list  each of the commands as it loads them.  This
  210. `looks very  messy and  is almost  always a complete waste of time.
  211. `Because of  this, nearly  all batch files will start with the line
  212. `"ECHO OFF"  which stops  your computer  from doing  this  annoying
  213. `habit!!!!    The  line will  look like this, and will obviously be
  214. `the first  line in  the AUTOEXEC.BAT  so it  will affect ALL other
  215. `lines :-
  216.  
  217.  
  218. `     ECHO OFF
  219.  
  220.  
  221. `Unfortunately, the  effect of  having "ECHO  OFF" does  not affect
  222. `itself, so  when a  batch file  is loaded with this line in, "ECHO
  223. `OFF" will  be displayed  on the  screen.   If this  is not desired
  224. `either, put  a '@'  sign at  the front of the line, and that won't
  225. `happen either.  Now the line will look like this :-
  226.  
  227.  
  228. `     @ECHO OFF
  229.  
  230.  
  231.  
  232. ~`The "Prompt" Command
  233. ~`────────────────────
  234.  
  235. `As you  will know,  the "C:\>", "D:\GAMES\FURY>", "E:\UTILS>" etc.
  236. `text which  is your prompt to enter a new command in DOS is called
  237. `a DOS  prompt.  What you might not know is that you can change the
  238. `look of  this prompt.   It  doesn't have  to display  your current
  239. `drive and  directory -  it could  display the  time and date, or a
  240. `specialised message  - it  can even  be several  lines long and in
  241. `colour!!!
  242.  
  243. `Normally the  line which  tells your  computer  what  your  prompt
  244. `should look like, reads :-
  245.  
  246.  
  247. `     PROMPT $P$G
  248.  
  249.  
  250. `This tells  your computer  to inform you of your current drive and
  251. `directory, and  put a  '>' symbol  at the  end of  this.   To have
  252. `different prompts is easy...
  253.  
  254. `If you  want a  specialised message  as the prompt, you simply put
  255. `this message  on the  same line  as the  "PROMPT"  command.    For
  256. `example, if  you wanted  a prompt  that says "What next Bub?", you
  257. `would use the following line in your AUTOEXEC.BAT :-
  258.  
  259.  
  260. `     PROMPT What next Bub?
  261.  
  262.  
  263. `If you  want other  things such  as the current time and date, you
  264. `must use  special codes  in your prompt line like the $p$g used in
  265. `the default prompt.  Here's a list of the codes you can use :-
  266.  
  267.  
  268. `     $Q   -   = (equal sign)
  269. `     $$   -   $ (dollar sign)
  270. `     $T   -   Current time
  271. `     $D   -   Current date
  272. `     $P   -   Current drive and path
  273. `     $V   -   MS-DOS version number
  274. `     $N   -   Current drive
  275. `     $G   -   > (greater-than sign)
  276. `     $L   -   < (less-than sign)
  277. `     $B   -   | (pipe)
  278. `     $_   -   ENTER-LINEFEED
  279. `     $E   -   ASCII escape code (code 27)
  280. `     $H   -   Backspace  (to delete a character that has been
  281. `              written to the prompt command line)
  282.  
  283.  
  284. `Example :-
  285.  
  286.  
  287. `If you  want the  prompt to have the text 'I'm waiting!', then the
  288. `time, then  on a  new line,  the current  drive and directory, you
  289. `would have your "Prompt" line as follows :-
  290.  
  291.  
  292. `     PROMPT I'M WAITING!  $T$_$P$G
  293.  
  294.  
  295. `The "I'm  Waiting" part tells it what message to have at the start
  296. `of the  prompt.   The two  spaces simply separate the message from
  297. `the time.   The  "$T" tells  it to  display the current time.  The
  298. `"$_" tells it to go down to the next line.  Then the "$P" tells it
  299. `to display  the current drive and directory, and the "$G" tells it
  300. `to round it all off with a '>' sign!!!
  301.  
  302. `If you  want your  prompt in  colour, you'll  first need  to  load
  303. `"ANSI.SYS" in your CONFIG.SYS.  To do this add the line :-
  304.  
  305.  
  306. `     DEVICE=C:\DOS\ANSI.SYS
  307.  
  308.  
  309. `...to your  CONFIG.SYS.   You can  now change  the foreground  and
  310. `background colours  of the  letters in  your prompt  by using ANSI
  311. `escape sequences.   For  information on this type the following at
  312. `the DOS  prompt  (so long as you have DOS v6.x or higher), because
  313. `it is too complicated to explain in this document :-
  314.  
  315.  
  316. `     HELP ANSI.SYS
  317.  
  318.  
  319.  
  320. ~`The "Path" Command
  321. ~`──────────────────
  322.  
  323. `This is  a very useful command indeed, which allows you save loads
  324. `of time  by reducing  the need to continuously change directory to
  325. `access different programs.  Basically, if you type in a file name,
  326. `your PC will first check the current directory to see if a file by
  327. `that name  is situated  there, then it checks for the same file in
  328. `all directories  you specify  on the  "Path" line.    The  default
  329. `"Path" line which DOS gives you will check the "C:\" directory and
  330. `the  "C:\DOS\"   directory,   and   windows   will   usually   add
  331. `"C:\WINDOWS\" to  this too.  However, you can add more directories
  332. `to this.
  333.  
  334. `All you  need to  do is  type the  full path of the directory, and
  335. `make sure  each new  directory you  want checked is separated by a
  336. `semi-colon   (a ';').  For example, here's a path you could use to
  337. `check the directories: C:\DOS, D:\WORD, C:\WINDOWS, D:\GAMES :-
  338.  
  339.  
  340. `     PATH C:\DOS;C:\WINDOWS;D:\WORD;D:\GAMES
  341.  
  342.  
  343.  
  344. ~`Environments
  345. ~`────────────
  346.  
  347. `There are quite a few environments that can be set within DOS.  It
  348. `is difficult  to explain  what an  'environment' in computer terms
  349. `is, as each one can do a different job.  Instead, I will cover the
  350. `three most popular ones here and you might get the idea.
  351.  
  352.  
  353. ~Environment 1  -  "Set Temp"
  354.  
  355. `If you run windows with virtual memory this line is essential.  If
  356. `you do  not have  it, windows  writes it's  temporary files  (.TMP
  357. `files)   to the root directory of your hard disk which clutters up
  358. `the most  important part  of  the  disk  with  messy  and  useless
  359. `files!!!  Instead, though, you can use the "Set Temp" directory to
  360. `tell windows   (and  DOS, I think)  to put their useless temporary
  361. `files elsewhere!!
  362.  
  363. `Obviously, it's  a good  idea to  put  .TMP  files  in  their  own
  364. `directory so  they don't  clutter up  other software,  and now and
  365. `again, go into this directory and delete the annoying things since
  366. `not only do they get in the way but they can take up a consideable
  367. `amount of disk space after a while.
  368.  
  369. `To set  the directory  where .TMP files are written to as C:\TEMP,
  370. `you must put the following line in your AUTOEXEC.BAT :-
  371.  
  372.  
  373. `     SET TEMP=C:\TEMP
  374.  
  375.  
  376. ~Environment 2  -  "Set DIRCMD"
  377.  
  378. `Whenever you type "DIR" it will give a listing of all the files in
  379. `the current  directory.  If you type "DIR" followed by one of many
  380. `commands, you  can change  the form  ths  listing  takes  (eg,  by
  381. `sorting the  files into  alphabetical order,  by putting  all  the
  382. `words in  lower case  etc).   If there  is one  of  these  special
  383. `options which  you always  use when  typing "DIR", you can use the
  384. `"Set DIRCMD"  line to  make it so that this command will always be
  385. `used even  if you  don't type  it alongside  the "DIR"  at the DOS
  386. `prompt.
  387.  
  388. `Here is  a full list of all the commands you could use on the "Set
  389. `DIRCMD" line :-
  390.  
  391.  
  392. `     /P      Pauses after each screenful of information.
  393. `     /W      Uses wide list format
  394. `     /AD     Displays only directories
  395. `     /AR     Displays only read-only files
  396. `     /AH     Displays only hidden files
  397. `     /AS     Displays only system files     
  398. `     /AA     Displays only files ready for archive
  399. `     /ON     Displays files in alphabetical order
  400. `     /OS     Displays files in size order  (smallest first)
  401. `     /OE     Displays files with extensions in alphabetical order
  402. `     /OD     Displays files in age order  (oldest first)
  403. `     /OG     Group all directories at start of directory listing
  404. `     /OC     Displays files by compressive ratio  (smallest first)
  405. `     /S      Displays files in directory and all subdirectories.
  406. `     /B      Uses bare format (no heading information or summary)
  407. `     /L      Uses lowercase.
  408. `     /C      Displays file compression ratio
  409. `     /CH     Uses host allocation unit size.
  410.      
  411.  
  412. `The line  you use  to set  your directory  command is  as follows.
  413. `Simply replace  the '#' sign with one or more of the commands from
  414. `the table  above   (although, beware  that some  commands will not
  415. `perform if used in conjunction with certain others) :-
  416.  
  417.  
  418. `     SET DIRCMD=#
  419.  
  420.  
  421. `For example,  if you  wanted all  your directory listings to be in
  422. `lower case,  alphabetical order,  and have the directories grouped
  423. `together at the top, you'd use the following line :-
  424.  
  425.  
  426. `     SET DIRCMD=/OG /ON /L
  427.  
  428.  
  429. ~Environment 3  -  "Set Blaster"
  430.  
  431. `This environment sets the commands for your soundcard.  Obviously,
  432. `if you don't have a soundcard, you don't need the line.  Also, you
  433. `will only  need the  line for  those games  which don't detect the
  434. `card's specifications  itself.    Those  games  will  require  the
  435. `information in the shape of this line instead.
  436.  
  437. `The  line   tells  software  your  soundcard's  channel,  its  IRQ
  438. `(Interrupt ReQuest), its DMA (Direct Memory Address) and what type
  439. `of soundcard  it is.   The  line would read as below, where '!' is
  440. `replaced by  the channel,  '@' by the IRQ, '#' by the DMA, and '$'
  441. `by the type :-
  442.  
  443.  
  444. `     SET BLASTER=A! I@ D# T$
  445.  
  446.  
  447. `For example, my Sound BlasterPro uses the following line, with 220
  448. `as the channel, 5 as the IRQ,  1 as the DMA and 4 as the type :-
  449.  
  450.  
  451. `     SET BLASTER=A220 I5 D1 T4
  452.  
  453.  
  454.  
  455. ~`Commands
  456. ~`────────
  457.  
  458. `The rest  of the  lines described in this document are used to run
  459. `actual software rather than set options.
  460.  
  461. `As a  rule, any  lines aimed  at just  loading software in a batch
  462. `file, simply  give the  full path  of the file needed, followed by
  463. `the file  name.   So, for  example, this  line will  load the file
  464. `"GWSHARE.EXE" from the directory "C:\DOS\GW" :-
  465.  
  466.  
  467. `     C:\DOS\GW\GWSHARE.EXE
  468.  
  469.  
  470. `From here to the end of this document are five examples of popular
  471. `software which  is often  run using AUTOEXEC.BAT, where it is, how
  472. `to run it, and what it does :-
  473.  
  474.  
  475.  
  476. ~Program 1  -  The Mouse Driver
  477.  
  478. `As you  will probably  know, you  will always need to load a mouse
  479. `driver before  you can  use your mouse.  A mouse driver tells your
  480. `PC how  to translate  the commands  the mouse  sends to  it.  Most
  481. `mouses are  bought with  a driver on disk, but there is usually no
  482. `need to  use this  since there  is a  driver which  comes with DOS
  483. `called "MOUSE.COM".  Although this only has few features, it seems
  484. `to work  with just  about all  mouses and is easy to use.  To load
  485. `this DOS  mouse driver,  simply add  the following  line  to  your
  486. `AUTOEXEC.BAT :-
  487.  
  488.  
  489. `     C:\DOS\MOUSE.COM
  490.  
  491.  
  492.  
  493. ~Program 2  -  "Smart Drive"
  494.  
  495. `This is  a cache  program.  Basically, when your computer requests
  496. `some information  from a  disk, "Smart  Drive" will  take a little
  497. `more than  the requested  amount, and  store this  in a  cache  (a
  498. `small portion  of memory).   This  is because  when information is
  499. `requested from  a  disk,  the  next  request  will  often  be  for
  500. `information next to this information on this disk.  Because "Smart
  501. `Drive" has  already requested  a little more, if this is the case,
  502. `your computer  can quickly take this from the cache without having
  503. `to go back to the disk, which saves time and wear on your drives.
  504.  
  505. `Before loading  "Smart Drive"  you must have loaded "HIMEM.SYS" in
  506. `your CONFIG.SYS   (see issue 39 of Cheet Sheets for information on
  507. `how to do that).
  508.  
  509. `When you  load up  "Smart Drive"  you can  specify the size of the
  510. `cache during both DOS and Windows sessions.  Obviously, the bigger
  511. `the cache, the larger the amount of extra information that will be
  512. `requested,  so   the  quicker  your  system  should  run  in  most
  513. `circumstances.  The InitCacheSize is the cache size whilst running
  514. `under DOS.   The  WinCacheSize is  the size  of the  cache  whilst
  515. `running under  windows.   When windows  is  loaded  the  cache  is
  516. `reduced to free more memory for windows itself.
  517.  
  518. `If you  don't specify  the  IntCacheSize  and  WinChacheSize,  the
  519. `following defaults are used :-
  520.  
  521.  
  522. `     Extended     │   InitCacheSize    │   WinCacheSize
  523. `     Memory       │   (ICS)            │   (WCS)
  524. `     ─────────────│────────────────────│────────────────────
  525. `     Up to 1 MB   │   All XMS memory   │   Zero (no caching)
  526. `     Up to 2 MB   │   1 MB             │   256K
  527. `     Up to 4 MB   │   1 MB             │   512K
  528. `     Up to 6 MB   │   2 MB             │   1 MB
  529. `     6 MB or more │   2 MB             │   2 MB
  530.  
  531.  
  532. `The following  line should  be used  to load  "Smart Drive"  where
  533. `'ICS' is the InitCacheSize, and 'WCS' is the WinCacheSize :-
  534.      
  535.  
  536. `     C:\WINDOWS\SMARTDR /X ICS WCS
  537.  
  538.  
  539. `(The /X  tells smartdrv to use extended memory  (useful when using
  540. `/AUTO in the EMM386 line of your CONFIG.SYS)).
  541.  
  542.  
  543.  
  544. ~Program 3  -  "MSCDEX"
  545.  
  546. `If you  have a  CD-ROM drive, you will have a CD-ROM driver loaded
  547. `in your  CONFIG.SYS program.   As  well as this, however, you will
  548. `also need  "MSCDEX.EXE" loaded  in your  AUTOEXEC.BAT.   This file
  549. `will work with any CD-ROM drive.  All it does is provide access to
  550. `the CD-ROM drive.
  551.  
  552. `Both the  "MSCDEX.EXE" line in your AUTOEXEC.BAT file, and the CD-
  553. `ROM driver  line in  your CONFIG.SYS  should have a parameter that
  554. `specifies the  driver  signature  for  your  CD-ROM  drive.    The
  555. `signature specified  in your  CONFIG.SYS must  be the same in your
  556. `AUTOEXEC.BAT.   This signature  is a  parameter which  reads "/D:"
  557. `followed by  a label  up to  8 characters  long.  This is normally
  558. `something along the lines of 'MSCD000'.
  559.  
  560. `The line  in your  AUTOEXEC.BAT to  load "MSCDEX.EXE"  might  read
  561. `something like this :-
  562.  
  563.  
  564. `     C:\DOS\MSCDEX.EXE /D:MSCD000
  565.  
  566.  
  567. `If this  is the  case, a  corresponding line  the CONFIG.SYS might
  568. `read as follows  (although this greatly depends on what the driver
  569. `is called, where it is stored, and what options it supports) :-
  570.  
  571.  
  572. `     DEVICE=C:\CDROM\CDMIKE.SYS /D:MSCD000
  573.  
  574.  
  575.  
  576. ~Program 4  -  "DOSKEY"
  577.  
  578. `If you  use DOS  a lot  and are  a fairly slow typer, a very handy
  579. `utility is  DOSKEY.   This remembers the last 20 commands you have
  580. `entered at the DOS prompt, which you can then scroll through using
  581. `the cursor up and down arrows.  This allows you to go back and run
  582. `a command  you used minutes ago without having to type the command
  583. `again.   What makes  this even  better is  that it only uses 3K of
  584. `memory!!!!!
  585.  
  586. `To load DOSKEY, simply add the following line to your AUTOEXEC.BAT
  587. `:-
  588.  
  589.  
  590. `     C:\DOS\DOSKEY.EXE
  591.  
  592.  
  593.  
  594. ~Program 5  -  "VSAFE"
  595.  
  596. `As every  computer user should know, the use of a virus checker is
  597. `essential  unless  you  want  to  risk  losing  great  amounts  of
  598. `important data  in a matter of minutes.  What's even better is the
  599. `use of a memory-resident virus checker, which will sit 'silently;'
  600. `in your  memory continuously  checking your  memory and  your hard
  601. `disk for viral activity etc.
  602.  
  603. `Well, have  you ever  heard of  VSAFE?  This is DOS's attempt at a
  604. `memory-resident virus-checker.   This  file is very small, easy to
  605. `use, and,  as soon  as it  spots a  virus wreaking  havoc on  your
  606. `system, it  stops all  activity and  gives a  great warning alarm.
  607. `You can  then shut  your system  down, and  load a virus killer to
  608. `kill the virus as soon as possible.
  609.  
  610. `To load  VSAFE is  easy -  simply add  the following  line to your
  611. `AUTOEXEC.BAT :-
  612.  
  613.  
  614. `     C:\DOS\VSAFE.EXE
  615.  
  616.  
  617.  
  618. ~`            *                   *                   *
  619.  
  620.  
  621.  
  622. `Well, there  you go  folks, there  it is.  Hope this helps  (along
  623. `with our  guide in  issue 39  on writing  your  CONFIG.SYS)    you
  624. `understand the  more complicated parts of the running of a PC, and
  625. `how to optimize performance....
  626.  
  627.  
  628.  
  629. `             ─────────────────────────────────────────
  630. ~`              By:  Simon Burrows  -and-  Alex Willmer
  631. `             ─────────────────────────────────────────
  632.  
  633.