home *** CD-ROM | disk | FTP | other *** search
/ Complete Bookshop / CompleteWorkshop.iso / compute / hd_org01 / hd-org01.txt
Encoding:
Text File  |  1987-02-16  |  8.8 KB  |  202 lines

  1.                      ORGANIZING A HARD DISK                 February 16, 1987
  2.  
  3. Is your hard disk well organized?
  4.  
  5. Is your root directory full of files?
  6.  
  7. Are all related files kept seperate from other files?
  8.  
  9. Do you know which directory you are in at all times?
  10.  
  11. Here are some tips on getting your hard disk organized that I have
  12. learned along the way.
  13.  
  14. 1.  Your root directory need only have 3 files in it at minimum.
  15.      a.  COMMAND.COM
  16.      b.  AUTOEXEC.BAT
  17.      c.  CONFIG.SYS
  18. And Any drivers accessed by CONFIG.SYS.  These may be files such as 
  19. ANSI.SYS 
  20.  
  21. 2.  Create a directory for all other DOS files you may need and name 
  22. it something like "DOS".  Put all other DOS files in this directory.
  23.  
  24. 3.  Create a directory for your utility programs.  Call it "UTILITY".
  25. Put utility files such as LIST.COM, ARC.EXE, VTREE.COM, WHERE.COM,
  26. FINDUPE.COM, FREE.COM and any other COM or EXE files you frequently
  27. use.  I have about 80 files in this directory on my hard disk.
  28.  
  29. 4.  Create a directory called "BATCH" for batch files which I'll explain
  30. later.
  31.  
  32. 5.  Now create directory's for related files.
  33.  
  34. PROGRAM         DIRECTORY        CONTENTS
  35. Wordstar        WS               All Wordstar files
  36. Framework       FW                 All Framework files
  37. Lotus           123                All Lotus 1-2-3 files
  38. Etc.
  39. Etc.
  40.  
  41. 6.  And under these directory's put related directory's, such as
  42. tutorials for Framework and Lotus and all the games under games
  43. directory, each in its own directory.
  44.  
  45. 7.  Your directory structure should resemble this:
  46.  
  47.                          -------------
  48.                          |           |
  49.                          |   ROOT    |
  50.                          |           |
  51.                          -------------
  52.                                |
  53.     -------------------------------------------------------------------
  54.     |          |          |          |          |          |          |  
  55. ---------  ---------  ---------  ---------  ---------  ---------  ---------
  56. |       |  |       |  |       |  |       |  |       |  |       |  |       |
  57. |  DOS  |  |UTILITY|  | BATCH |  |  123  |  |  WS   |  | GAMES |  |  FW   |
  58. |       |  |       |  |       |  |       |  |       |  |       |  |       |
  59. ---------  ---------  ---------  ---------  ---------  ---------  ---------
  60.                                                 |          |          |     
  61.                                             ---------      |      ---------
  62.                                             |       |      |      |       |
  63.                                             | TUTOR |      |      | TUTOR |
  64.                                             |       |      |      |       |
  65.                                             ---------      |      ---------
  66.                                                 -----------|----------
  67.                                                 |          |         |
  68.                                             ---------  ---------  ---------
  69.                                             |       |  | WHEEL |  |       |
  70.                                             | RIBBIT|  |   OF  |  | CHESS |
  71.                                             |       |  |FORTUNE|  |       |
  72.                                             ---------  ---------  ---------
  73.  
  74. 8.  Now to work on the AUTOEXEC.BAT file, mine looks like this:
  75.  
  76. echo off                                 DONT ECHO
  77. path c:\;c:\dos;c:\utility;c:\batch      SET PATH
  78. prompt $e[40;35;1m$p$g$e[33;40;1m        SET PROMPT AND COLOR 
  79. cls                                      CLEAR SCREEN
  80. nu-epson                                 CALL MEMORY RES. PRINTER CONTROLLER
  81. cls                                      CLEAR SCREEN
  82. spooler 63                               CALL MEMORY RES. PRINT SPOOLER
  83. cls                                      CLEAR SCREEN
  84. timer/s                                  SET DATE AND TIME FROM MULTI I/O
  85.  
  86. I have more than the above in my AUTOEXEC.BAT file but this is representative
  87. of it.
  88.  
  89. 9.  The PATH command in the AUTOEXEC.BAT is a very powerfull command,
  90. it will allow you to find an EXE, COM or BAT file from anywhere.  Lets say
  91. your logged into the A: drive and type FORMAT B:.  But FORMAT.COM is 
  92. not on the A: drive.  The PATH command will search the C: root directory
  93. followed by the DOS directory and find FORMAT.COM and execute it.
  94. Another example, you can be logged into any directory or drive and type
  95. LIST FILENAME and the program LIST will be found in the UTILITY directory
  96. by the path command.  So the sequence of events caused by the PATH
  97. command is as follows:  You type in the name of an EXE, COM or BAT file,
  98. first DOS looks in the default drive or directory for it.  If it is not
  99. found, it then searches the ROOT of C: followed by DOS of C: followed by
  100. UTILITY of C: followed by BATCH of C:.
  101.  
  102. 10. Now to the BATCH directory.  In my batch directory I have files such
  103. as this, they can be created with EDLIN or a text word processor.
  104. ------------------------------------------------------------------------
  105. DC.BAT        allows me to exec. DISKCOPY A: B:
  106.  
  107. echo off                           ECHO OFF
  108. diskcopy A: B:                     CALL DISK COPY WITH PARAMETERS
  109. ------------------------------------------------------------------------
  110. WS.BAT        executes Wordstar from anywhere
  111.  
  112. echo off                           ECHO OFF
  113. cd \ws                             GO TO THE WORDSTAR DIRECTORY
  114. ws                                 EXECUTE WORDSTAR
  115. ------------------------------------------------------------------------
  116. CHESS.BAT    executes CHESS game from anywhere
  117.  
  118. echo off                           ECHO OFF
  119. cd \games\chess                    CHANGE TO CHESS DIRECTORY
  120. chess                              EXECUTE CHESS
  121. ------------------------------------------------------------------------
  122. UTIL.BAT       allows me to go to the utility directory from anywhere
  123.  
  124. echo off                           ECHO OFF
  125. cd \utility                        CHANGE TO UTILITY DIRECTORY
  126. ------------------------------------------------------------------------
  127. C.BAT          Does a directory of C:
  128.  
  129. echo off                           ECHO OFF
  130. dir c:                             EXECUTE DIR COMMAND
  131. ------------------------------------------------------------------------
  132. CW.BAT         Prints wide directory of C:
  133.  
  134. echo off                           ECHO OFF
  135. dir c:/w                           EXECUTE DIR /W COMMAND
  136. ------------------------------------------------------------------------
  137. I have about 50 batch files in my BATCH directory.
  138. Can you see the power of this?  By just typing in "WS" from any DOS prompt, 
  139. you can execute Wordstar.  By just typing in "DC" from any DOS prompt, you can 
  140. execute DISKCOPY A: B: 
  141.  
  142. 11. You MUST have DEVICE=ANSI.SYS in your config.sys file for the prompt
  143. command to work properly.
  144.  
  145. The prompt command:  prompt $e[40;35;1m$p$g$e[33;40;1m
  146.  
  147. $e[40;35;1m      =      set prompt colors for DOS
  148. $p$g             =      show directory at DOS prompt
  149. $e[33;40;1m      =      set text colors for DOS
  150.  
  151. $e[         is an escape sequence for ANSI
  152. 40;35;        is black backround and magenta forground
  153. 1m         selects high intensity
  154.  
  155. $p$g        $p shows directory, $g shows >
  156.  
  157. $e[             is an excape sequence for ANSI
  158. 33;40;          text colors of yellow on black backround
  159. 1m              selects high intensity
  160.  
  161. If you were in the CHESS directory as shown in the directory structure above 
  162. your DOS prompt would look like this:
  163.  
  164. C:\GAMES\CHESS>        <------anything typed after the prompt will be yellow.
  165. ^             ^
  166. ^-------------^
  167.       |
  168.  This will be in Magenta
  169.  
  170. My config.sys file looks like this:
  171. ------------------------------------------------------------------------
  172. files=25
  173. buffers=40
  174. device=ansi.sys
  175. ------------------------------------------------------------------------
  176. If you have a color monitor, try the prompt command and see it work.  
  177. It is just great!!  DONT FORGET, DEVICE=ANSI.SYS MUST BE IN YOUR CONFIG.SYS
  178. FILE.
  179.  
  180. If you have a monochrome monitor you only need "prompt $p$g" this will give 
  181. you the directory you are in at the DOS prompt.  
  182.  
  183. I think I found this out in PC magazine.  It's also in the DOS technical 
  184. reference manual.
  185.  
  186. 12. Clean up your directory's by erasing files that are not needed on the hard 
  187. disk, these are usually INSTALL programs and print or monitor drivers for 
  188. monitors and printers you dont have.  They also may contain batch files you 
  189. really dont need.
  190.  
  191. I hope you can use some of this information.... I sure could have when I first 
  192. got my PC/XT compatible with 20 Meg. hard disk.
  193.  
  194. If anyone has more information that will be of use, just drop me a line and 
  195. I'll update this file after trying your ideas.
  196.  
  197. Thanks,
  198.  
  199. Lawrence H. Lund
  200. 179 Studley ST.
  201. Brentwood, N.Y. 11717
  202.