home *** CD-ROM | disk | FTP | other *** search
- WD: Working Directory Retrieval Program
- User's Guide
-
- Barry Press
- 4201 Empress Avenue
- Encino, California 91436
-
- 1.0 Introduction
-
-
- WD is a program to remember the current working directory
- and to return to that directory on command. It is primarily
- useful in MS-DOS and PC-DOS batch files which must change the
- current working directory in order to run a program. Using WD in
- these batch files permits the return to the original working
- directory regardless of the manipulations within the batch file.
-
- WD has three functions:
- 1. Note the current working directory path name, saving it
- for later reference.
- 2. Set the current working directory to the saved path name.
- 3. Print the saved working directory path name on the
- screen.
-
-
-
- 2.0 Running WD
-
-
- WD is supplied on floppy disk as the file WD.COM. It will
- run on any MS-DOS or PC-DOS system running DOS version 2.0 or
- later and with nearly any memory configuration. WD permanently
- occupies a small memory area of a few hundred bytes after it is
- first run, and temporarily requires a few hundred more bytes each
- time it is run thereafter. The program is run with one of the
- following three commands:
- wd note
-
- to record the current working directory drive and path name;
- wd set
-
- to change the current working directory to the saved drive and
- path name; and
- wd
-
- to print the saved working directory drive and path name.
-
- To illustrate the use of WD, the following batch file, named
- 123.bat, will execute 123 from the directory \123, and will
- return to whatever directory is current when execution of the
- batch file begins following termination of 123:
-
- echo off
- wd note
- cd \123
-
-
-
- Last Updated 9-24-84 WD Version 1.0
-
-
-
-
-
- WD: Working Directory Retrieval Program User's Guide Page 2
-
-
- 123
- wd set
-
-
-
- 3.0 Cautions
-
-
- WD only saves one copy of the working directory path name.
- Accordingly, trying to nest invocations of WD (i.e., note, note,
- set, set) will not have the intended effect.
-
-
-
-
-
- Last Updated 9-24-84 WD Version 1.0
-