home *** CD-ROM | disk | FTP | other *** search
/ On Disk Monthly 62 / odm62.zip / GD.TXT < prev    next >
Text File  |  1991-10-18  |  5KB  |  161 lines

  1. Directory Utilities
  2. banner colors 7 7
  3. SG
  4. dir utilities static
  5. staticgraph 145,80
  6. AG
  7. dir utilities animation
  8. L #1 1 2,80;2,236 4 18 B
  9. T #2 1 122,218 18
  10. T #3 1 272,277 18
  11.  
  12. ^C^Bby George Leritte^B
  13.  
  14. Note: This month's Happy Hacker programs are DOS utilities meant
  15. to be run from the command line.  They will not run from our
  16. shell
  17.  
  18. Do you have trouble remembering all the directories (and those
  19. long path names) on your hard drive?  As the hierarchical
  20. structure of your drive becomes complex, it becomes essential to
  21. have some help in quickly moving between directories.
  22.  
  23. To this end, On Disk Monthly presents Directory Manager, a package of
  24. four DOS utilities that work together to help you quickly and
  25. effortlessly manage the directories on your hard disk drive.  You can
  26. save the directories YOU want (usually the ones you want to get to
  27. often) in a database, and then call up a pick list of those
  28. directories any time to switch to one.  You may also push a directory
  29. and later pop it off!  Sounds darn useful, eh?  Well, let's learn
  30. more, shall we?
  31.  
  32.  
  33. ^C^BCopy It^B
  34.  
  35. Since these are DOS utilities, they are best and most effectively
  36. used from the DOS command line.  So, first, use the "Copy It" option
  37. in the ODM shell to copy these four utilities to your UTILS
  38. subdirectory (or wherever you keep your DOS utilities), and make sure
  39. they are in your path.  (If you are baffled about the words
  40. "IN YOUR PATH" please have a peek at your MS DOS manual for
  41. a complete explanation.) You will want them to be accessible
  42. from anywhere on your system.
  43.  
  44.  
  45. ^C^BUtilities #1 and #2: Save Directory (SD) and Get Directory (GD)^B
  46.  
  47. Save Directory saves the current directory (the one you are "in")
  48. into a database in the root directory of C drive (C:\PATHS.DAT).
  49. Up to 840 directories across multiple drives can be stored in
  50. this database. To use, simply type SD from the DOS prompt to save
  51. the current directory to the database.
  52.  
  53. Once the database of directories is available, invoke Get
  54. Directory by typing GD from the DOS prompt to bring up a pick
  55. list of these directories to choose from.  Use the following
  56. commands from within Get Directory:
  57.  
  58.      UP/DOWN arrows,
  59.      HOME, END,
  60.      PAGEUP, PAGEDN. . . . . .Move within the directory pick list.
  61.  
  62.      ENTER . . . . . . . . . .Go to the highlighted directory.
  63.  
  64.      ESCAPE. . . . . . . . . .Abort GD and stay in the current
  65.                               directory.
  66.  
  67.      DELETE. . . . . . . . . .Delete the highlighted directory
  68.                               from the database.
  69.  
  70.      F1. . . . . . . . . . . .Get Directory Help.
  71.  
  72.      F2. . . . . . . . . . . .Get Directory information.
  73.  
  74.  
  75. You may use a command line parameter when invoking GD to speed up the
  76. search for the desired directory.  For example, type
  77.  
  78.      >GD C:\DB     or
  79.      >GD DB
  80.  
  81. to make C:\DB the initial highlighted directory entry.
  82.  
  83.  
  84. ^C^BUtilities #3 and #4 : PushDir and PopDir^B
  85.  
  86. This useful pair of utilities work together to save a directory and
  87. later restore it.  PushDir saves (pushes) the current directory onto
  88. the end of the database file C:\PATHS.DAT; PopDir removes (pops) the
  89. last directory entry from the database and changes to that directory.
  90. Hence, these two can be used together to save a directory, do some
  91. other stuff, and then restore the original directory.
  92.  
  93. You are probably thinking, "These would be perfect for batch files!",
  94. and you are right--that is exactly what they are most useful for.
  95. For example, you might be in your C:\MYSTUFF directory and want to
  96. launch an application over in C:\TAXSTUFF.  Simply write a batch file
  97. that looks something like this:
  98.  
  99.      Echo Off
  100.      PushDir
  101.      CD C:\TAXSTUFF
  102.      CLS
  103.      Echo Running Tax Manager v6.0...
  104.      TAXMNGR
  105.      PopDir
  106.  
  107. Now, to run your Tax Manager program, invoke this batch file from any
  108. directory on your system (the batch file must, of course, be in your
  109. path).  When the batch file ends you will be automatically placed
  110. back in your original directory.
  111.  
  112. Note that with PushDir, you may create multiple instances of
  113. identical directories in the database, since the current directory is
  114. always pushed onto the end of the file.  And, with PopDir, you may
  115. pop any number of entries off the database (down to zero, if you
  116. wish) since the last entry is alway popped off the end of the file.
  117.  
  118. ^CNow how much would you pay?
  119. ^C^BWAIT THERE'S MORE^B
  120.  
  121. We've included the Turbo Pascal 5.0 sources for these utilities
  122. in a self-extracting EXE file named GDSOURCE.EXE.  This file WILL
  123. NOT COPY with our built-in copy function.  You'll have to copy
  124. it from our disk to your hard disk and unpack it.  DO NOT
  125. ATTEMPT TO UNPACK THIS FILE ON THE ODM DISK--IT WILL NOT FIT!
  126.  
  127. ^C^BOutside On Disk Monthly^B
  128.  
  129. These utilities can only be run outside of On Disk Monthly, so, first
  130. copy them to a directory on your hard drive that is on your path.
  131. Then, whenever you want to add a directory to the database, type
  132.  
  133.      >SD
  134.  
  135. and the current directory will be saved.  To recall a pick list of
  136. those directories that have been added so far, type
  137.  
  138.      >GD or
  139.      >GD parm
  140.  
  141. and choose a directory.  To push and pop directories, type
  142.  
  143.      >PUSHDIR  and
  144.      >POPDIR
  145.  
  146. from DOS or from within a batch file.
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. ^C^BFiles These Programs Use^B
  156.  
  157. ^FSD.EXE
  158. ^FGD.EXE
  159. ^FPUSHDIR.EXE
  160. ^FPOPDIR.EXE
  161. ^FC:\PATHS.DAT