home *** CD-ROM | disk | FTP | other *** search
- RETMOD - Batch file system to run a program from any drive and directory
- ------------------------------------------------------------------------
- It is often useful to be able to run software without having to change the
- logged in drive and directory first. Then after leaving the program the user
- should be returned to the original drive and directory, with all directories
- set as they were originally. This system provides an efficient new way to do
- this and uses no memory to do it.
-
- The Past
- --------
- Up to now there have been four ways to run a program:
-
- 1. Log into the correct drive, then change directories to the correct
- directory, then type the program name. After leaving the program, change the
- directory back and then log in to the original drive. This works well but is
- inconvenient.
-
- 2. Put the directory on the DOS path. This works well for simple utilities but
- has several disadvantages:
- - The path needed can get longer and longer as additional software is
- installed.
- - Some programs which use overlays or other data files cannot find the
- necessary files and fail to work correctly.
- - Some programs can cope with this only if environment variables have been set
- to tell the program where its files are located. This leads to problems with
- setting these variables correctly, conflicting variable names between different
- packages, and running out of environment space.
-
- 3. Write a simple batch file to change to the correct drive and directory and
- run the program. The problem is that after leaving the program the user is not
- returned to the original location, and has to do this manually.
-
- 4. Run a TSR program that stores the current location and restores it
- afterwards. This has the disadvantages that memory is used to run the program,
- the program may conflict with other software, and the directory of the drive
- the software is on, if this is different, may be changed and not restored.
-
- Functions
- ---------
- 1. Runs any software from any drive and directory and automatically returns to
- the original drive and directory afterwards.
- 2. Leaves the default directory on the drive containing the software unchanged
- afterwards.
- 3. Allows the software to be run by entering a single command.
-
- Installation
- ------------
- This archive contains the following files:
- RETMOD.DOC This file.
- RETMOD.BAT Batch file which does the work.
- RETMOD.PAT Debug patch file used by RETMOD.BAT.
-
- Requires DOS 3.3 or later.
-
- 1. Copy RETMOD.PAT to the directory containing the software to be run.
- 2. Copy RETMOD.BAT to a directory on your DOS path.
- 3. Ensure that DEBUG (which comes with DOS) is on your path.
- 4. Create a one line batch file, located on your DOS path, containing one line
- of the form:
- RETMOD drive directory program %1 %2 %3 %4 %5 %6
- When using the batch file, up to six parameters will be passed to the program.
- Note that the directory is not allowed to be the root directory.
-
- Example
- -------
- Suppose the directory c:\bat is on the DOS path and contains batch files.
- Suppose that the DOS files are in c:\dos.
- The software to be run is on drive D, in directory \ody and the program is
- called ody.exe.
- 1. Copy RETMOD.PAT to d:\ody
- 2. Copy RETMOD.BAT to c:\bat
- 3. Check that DEBUG is in c:\dos
- 4. Create a file called say ODRET.BAT in c:\bat and put in it the one line:
- RETMOD d: \ody ody %1 %2 %3 %4 %5 %6
-
- Now to run the software just type ODRET. Everything will be done
- automatically.
-
- Comments
- --------
- Do not try to alter it in any way without fully understanding how it works.
- Please send any comments to rtrue at CIX.
- 29 June 1991
-
-