home *** CD-ROM | disk | FTP | other *** search
- PUSHD version 1.2
-
- Usage:
- PUSHD directory
- Will push the current directory onto the directory stack
- if there is a location available and changes to the current
- directory to the specified parameter.
- PUSHD
- Will change the current directory to the directory stored
- in the top of the stack and will place the current directory
- on the top of the stack.
- PUSHD +n
- Will change the current directory to the directory stored
- in stack location n, with 1 being the bottom of the stack
- and 6 being the top. The stack will be compressed to remove
- any empty space and the current directory will be stored
- on top of the stack.
- Purpose: This program will store directories in a memory-resident
- area and change to a specified directory, so that the
- user may switch back to a previous directory without having
- to either know or to type in the required directory. If the
- program terminates abnormally an error message will be
- printed to the standard error.
- Requirements:
- PUSHD v. 1.2 will work with POPD v. 1.2 and DIRS v. 1.1b.
- Notes:
- PUSHD requires 2016 bytes free memory to run.
- If PUSHD was not previously loaded into memory, due to
- not use or abnormal termination, the program will now be
- loaded with a reduction of memory of 1024 bytes. This
- includes the storage space required for the stack and
- the new interrupt 13 handler.
- Error Codes:
- 0) Successful completion.
- 249) Error popping directory off stack.
- 250) Error pushing current directory.
- 251) Directory Stack is full.
- 252) Error changing to directory given on command line.
- 253) Command Line parameter exceeds Directory Stack depth.
- 254) Illegal Characters on the Command Line.
- 255) Command Line parameter not in valid directory range (1-6).
- Version changes:
- PUSHD v. 1.2: July 21, 1990.
- coded in Toad Hall tweaks and suggestions (much
- thanks to David Kirschbaum).
- PUSHD v. 1.1: July 14, 1990.
- added "+n" option.
- added change to parameter option.
- changed no parameter option to switch current and
- top directories.
- changed hooked interrupt to 13 from 16.
- added error codes for abnormal termination.
- changed writes from vector 9 to vector 40h of
- int 21h.
- changed program termination from int 20h to vector
- 4Cxxh int 21h, where xx represents the error code
- generated.
- removed stack wrap around.
- PUSHDIR v. 1.0: Copyright 1986, Ziff-Davis Publishing Co.
- From PC Magazine, May 27, 1986
- No changes.
- Future Enhancements:
- 1) Change the "n" parameters so that it refers to the
- top of the stack, not the bottom (RELATIVE from the top
- NOT ABSOLUTE from the bottom).
- 2) Make program an .EXE file.
- 3) Remove extra push/pop commands.
- 4) Fix up various hacks.
- 5) Correct error caused by 3 or more blanks at end of
- command line tail.
- 6) Add a help option, ?, from the command line.
- 7) have "signature" loaded into memory so that programs such
- as "POPDROP" can identify the stack as resident.
-
- Created by:
- (from ideas based in UNIX and from PC Magazine's POPDIR.COM)
- William P. Sarra
- CIS:71041,347
- arpa: sarra@TOPAZ.RUTGERS.EDU
- uucp: ...{ames,cbosgd, harvard, moss}!rutgers!topaz.rutgers.edu!sarra
-
-
-