home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / drip200.zip / DRIP-MB.DOC next >
Text File  |  1993-01-04  |  4KB  |  89 lines

  1. Drip-MB.DOC
  2. -------------
  3.  
  4. Compatibility: Should work under DOS 2.10 or better. Optimal
  5.   performance with DOS 4.01 or greater.
  6.  
  7. Features: Path restoration, small resident code (about 3Kb),
  8.   removable.
  9.  
  10. What is "DRIP"?
  11.     DRIP is an acronym for Directory Restoration via Interrupt
  12. Procedures [ Not! I just couldn't think of a catchy but descriptive
  13. name!  :) ].  This means that one can save the current drive and
  14. directory in a reserved area of memory, and recall that info at a
  15. later time. Why do this? The maintainers of DOS, in their wisdom,
  16. forgot to add what I consider a crucial function to their batch files:
  17. the ability to return to the directory you started from. I have more
  18. than a few programs that depend on the current directory being theirs.
  19. I have often been annoyed at the fact that while a batch file can
  20. easily get me to the directory I need, it cannot return to the
  21. original one! So, in a fit of pique, I wrote this.
  22.  
  23.     I debated several options for storing the variables (dos stack,
  24. device driver, environment variables [try it... it's not as easy as it
  25. would seem...], cmos ram...) and decided the best way is to use a
  26. short TSR to reserve a chunk of memory for my use only. This TSR is
  27. accessed via an originally unused interrupt vector. Since all access
  28. is preformed thru the interrupt interface, it should work wherever it
  29. is loaded.
  30.  
  31.     The user must put execute the file MYBUFFER.EXE once to reserve
  32. the space, and set the vectors, before using DRIP. DRIP may take one
  33. command line option (case insensitive):
  34.  
  35.     -P   Puts the current path info (drive and directory) into the
  36.            buffer.
  37.     -G   Gets and restores the buffered path
  38.     -U   Uninstalls MyBuffer from memory (it is best to use this when
  39.            this is the most recent TSR loaded.)
  40.  
  41.     NB: Proper usage means using 'drip -P' before ever using 'drip -g'
  42. If you use '-G' before putting something IN the buffer, the program
  43. attempts to switch you to the current directory of the A: drive
  44. (internal defaults, NOT random.) If there is no disk there, the
  45. familiar Abort, Retry, Fail prompt will appear.  'F'ail, with a valid
  46. drive letter, will get you back to a prompt.  This is no different
  47. from trying to change to an empty disk drive from the command line,
  48. and will not harm anything.  When used properly, such problems will
  49. not occur.
  50.  
  51.     An example of a batch file using this:
  52.  
  53.  > @echo off             // turn off echoing
  54.  > drip -p               // put current path in buffer
  55.  > d:                    // go to a different drive
  56.  > cd \games             // go to a new directory
  57.  > zappitup              // play the game, or whatever...
  58.  > drip -g               // restore the old path
  59.  > echo on               // turn echoing back on
  60.  
  61.     If the message 'POP failed' appeard when Getting the path, the
  62. most likely cause is that the directory it is trying to restore does
  63. not exist. (The program will NOT create or delete any files or
  64. directories!)
  65.  
  66.     If you notice any bugs or errors, please notify me at once!
  67.  
  68.     This program is fully functional shareware. You may use this
  69. software for 10 days to examine it. If you find it to be useful and a
  70. worthy addition to your collection, please send $10.00 (U.S.) to the
  71. address below to register your copy.
  72.  
  73.                               Enjoy!  :-)
  74.  
  75.  For registrations:    Martin F. Falatic
  76.                        639 Alabama St., Apt. B
  77.                        Lafayette, IN  47901-1668
  78.                        (317) 742-1911
  79.  
  80.                Direct questions, comments or bugs to the
  81.             E-mail addresses below or the phone number above:
  82.         (I check my Internet mail often, usually daily. I check
  83.                 Compuserve mail weekly or less often.)
  84.  
  85.                 Internet: falatic@mentor.cc.purdue.edu
  86.                         Compuserve: 70303,0317
  87.  
  88.                          "What? ME?!? No way!"
  89.