home *** CD-ROM | disk | FTP | other *** search
- ∙Thom∙Little∙Associates∙
-
- - tlaDPP30.zip - Directory Push/Pop -
- Version 3.00
-
-
- tlaDPP30.zip CONTENTS:
-
- DPOP.COM Command to remove most recently added drive-directory
- from the resident drive-directory stack.
-
- DPOPALL.COM Command to clear all drive-directories from the
- resident drive-directory stack and set drive-
- directory to the first drive-directory added to the
- resident drive-directory stack.
-
- DPRES.COM Terminate and Stay Resident (TSR) module that
- contains the resident drive-directory stack.
-
- DPUSH.COM Command to add a drive-directory to the resident
- drive-directory stack.
-
- DPP.DOC This documentation file.
-
- DP.EXE Command line interface for DPP.
-
- GO.EXE Command to transfer to a drive-directory without
- saving anything in the resident drive-directory
- stack.
-
-
- PURPOSE:
-
- The support for directories in the DOS system is somewhat limited.
- The modules contained here lift some of those limitations.
-
- The module DPRES.COM is installed when you load your system. It
- contains a stack large enough to hold eight drive-directory
- identifications. The other modules interact with DPRES.COM to allow
- you to rapidly move to any drive-directory on your system and return
- to the location from which you came.
-
-
- BATCH FILE OPERATION:
-
- Three commands are included that are used primarily in batch files.
- These are:
-
- DPUSH.COM is used to add the current drive-directory to the stack.
-
- DPOP.COM is used to remove the most recently added drive-
- directory from the stack and make this the current drive-
- directory.
-
- DPOPALL.COM is used to purge all the drive-directory elements
- from the stack and make the oldest entry in the stack the
- current drive-directory.
-
- Assume that the current drive is C: and the current directory is
- \COM\PCP and that you execute the following batch file:
-
- @ECHO OFF
- DPUSH
- G:
- CD \WINDOWS
- WIN
- DPOP
-
- DPUSH saves the current drive-directory. The batch file sets the
- drive-directory to G:\WINDOWS, The batch file then invokes WIN.
- When WIN completes, DPOP restores the drive-directory to C:\COM\PCP.
-
- You can now have batch files that create the specialized
- environments that are needed for your applications and then return
- to the environment from which it was called.
-
- You can DPUSH up to eight drive/directories onto the stack and DPOP
- your way back through the drive/directories that you DPUSHed.
-
- There are special cases when you will just want to ignore everything
- in the drive-directory stack and go "home." You can easily do this
- by issuing the DPOPALL command. This will purge all entries from the
- stack and set the current drive-directory to the first drive-
- directory that you had added to the drive-directory stack.
-
-
- COMMAND LINE OPERATION
-
- The program DP.EXE is included to allow easy manipulation of the
- drive-directory stack from the DOS command line. DP.EXE invokes
- DPUSH, DPOP, and DPOPALL to manipulate the drive-directory stack in
- DPRES.
-
- Assume that you are positioned at C:\COM\PCP. The command:
-
- DP G:\WINDOWS
-
- will do a DPUSH (add C:\COM\PCP to the drive-directory stack) and make
- G:\WINDOWS the current drive-directory.
-
- The command:
-
- DP
-
- will DPOP (set the current drive-directory to the last drive-directory
- added to the drive-directory stack) you back to C:\COM\PCP.
-
- The batch file example presented earlier could be replace with the
- following batch file that performs the identical function:
-
- @ECHO OFF
- DP G:\WINDOWS
- WIN
- DP
-
- In addition you can purge the drive-directory stack and set the
- current drive-directory to the oldest entry in the stack by issuing:
-
- DP /CLEAR
-
- GO.EXE is also included for use from the command line. It provides
- the function of a DOS drive command followed by a DOS change
- directory command. It does not interact with the resident
- drive-directory stack in DPRES.
-
- If you have a system with multiple drives you probably issue many
- command sequence like:
-
- D:
- CD \DOS\BIN\MASM
-
- to first set the drive and then set the directory.
-
- This same operation can be performed by:
-
- GO D:\DOS\BIN\MASM
-
-
- COMMAND SYNTAX:
-
- dpop
- dpopall
- dpush
- dpres
-
- dp [drive-directory-name]
- dp /clear
- dp /?
-
- go drive-directory-name
-
-
- drive-directory-name
-
- Defines the DOS drive-directory name to set as the
- current drive-directory
-
- /clear
-
- Purge the resident drive-directory stack and set
- the current drive-directory to the oldest entry in
- the resident drive-directory stack.
-
- /?
-
- List an abbreviated description of the command
- syntax.
-
-
- SAMPLE COMMANDS:
-
- dp g:\win DPUSH current drive-directory onto stack and set
- current drive-directory to G:\WIN.
-
- dp DPOP most recent drive-directory from stack and
- make it the current drive-directory.
-
- dp /clear DPOPALL to clear all elements from the stack and
- make the oldest entry the current drive-
- directory.
-
- dp /? list command syntax.
-
-
- INSTALLATION:
-
- To use this facility on your machine, you need to do two things:
-
- 1. Copy the executable modules to a subdirectory that exists on your
- system path.
-
- As an example, on our systems this directory is at D:\DOS\TLA.
- To install this facility, if the executable modules are in the
- current drive-directory, we would enter:
-
- COPY *.COM D:\DOS\TLA
- COPY *.EXE D:\DOS\TLA
-
- The first command will copy DPOP.COM, DPOPALL.COM, DPRES.COM,
- and DPUSH.COM to D:\DOS\TLA. The second command will copy
- DP.EXE and GO.EXE to D:\DOS\TLA.
-
- 2. Add DPRES to your AUTOEXEC.BAT file so that it is loaded each
- time your system is loaded.
-
- As an example, on our systems we would add:
-
- D:\DOS\TLA\DPRES
-
- to the AUTOEXEC.BAT file. Each time DPRES loads, it will
- identify itself. You can suppress these messages by substituting
- the following command:
-
- D:\DOS\TLA\DPRES > NUL
-
- to take the normal console output and redirect it.
-
-
- ERROR MESSAGES:
-
- This facility issues the following error messages:
-
- DPP: All resident stack elements used.
-
- DP, DPUSH. An attempt was made to add the
- ninth drive-directory to the resident stack.
- There is space allocated for only eight
- elements. The request was ignored. You probably
- need to purge the resident stack with a DPOPALL
- or DP /CLEAR command.
-
- DPP: Error popping directory off resident stack.
-
- DP, DPOP or DPOPALL. An error occurred while
- removing a drive-directory from the resident
- stack. Two possibilities exist:
-
- either:
-
- Some other process on your system has
- overwritten the DPRES area of your memory.
-
- or:
-
- You DPUSHed a drive-directory, renamed or
- deleted the directory on your disk and then
- issued a DPOP. Since the directory no longer
- exists or has the same name, it is not possible
- to change the current drive-directory to its
- value.
-
- DPP: Error reading current directory.
-
- DP or DPUSH. An error occurred while attempting
- to read the current directory. The resident
- stack is unchanged. The request is ignored.
-
- DPP: Invalid number of parameters specified.
-
- DP. An incorrect number of parameters was
- specified. The request was ignored.
-
- DPP: No drive-directory in resident stack.
-
- DP, DPOP or DPOPALL. A request to pop an entry
- from the resident stack could not be serviced
- because there were no active elements in the
- stack. Put another way, you issued more DPOPs
- then DPUSHs.
-
- GO: Invalid number of parameters specified.
-
- GO. An incorrect number of parameters was
- specified. The request was ignored.
-
-
- SHAREWARE:
-
- This software is provided as shareware for your evaluation, use, and
- financial contribution. This software has not been placed in the
- public domain.
-
- If you use this software, and live outside Massachusetts, please send
- a payment of $10.00 to:
-
- Thom Little Associates
- Product Support
- P.O. Box 1901
- Boston, MA 02205-1901
-
- Voice ......... 617.227.4644
- Compuserve .... 70724,71 (Thom Little)
- Channel One ... Thom Little
-
- (If you reside in Massachusetts please include Massachusetts state
- tax of $.50 for a total of $10.50.)
- Copyright 1986-1992 ∙Thom∙Little∙Associates∙ all rights reserved.
-
-
- DISCLAIMER:
-
- ∙Thom∙Little∙Associates∙ disclaims all warranties as to this software,
- whether express or implied, including without limitation any implied
- warranties of merchantability, fitness for a particular purpose,
- functionality or data integrity or protection.
-
-
- HISTORY:
-
- 01-01-92 Version 3.00 first shareware release to public.
-