home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
misc_programming
/
jump.doc
< prev
next >
Wrap
Text File
|
1994-10-18
|
1KB
|
43 lines
October 18, 1994
JUMP.EXE version 2.0 is a batch file enhancer to put the current drive
into the environment as OLDRV=d: where, d is the drive letter; and
to put the current path into the environment as OLDIR=CD\xxxx, where
xxxx is the current path.
Syntax is, JUMP ,to save the current dirve/directory to the environment,
JUMP R ,to return to the saved drive/directory and, JUMP /? ,for the
help screen.
Here is an example of how JUMP can be used:
@ECHO OFF
JUMP ;Save current drive and directory to environment.
C:
CD\TELIX
TELIX
JUMP R ;Return to saved drive and directory.
An alternative for returning to the original drive and directory is
to use the environmental variables directly in the batch file. Like so:
@ECHO OFF
JUMP
C:
cd\TELIX
TELIX
%OLDRV%
%OLDIR%
When you exit either of these batch files, you are on the same drive,
and in the same directory as when you started the batch file.
Jump will exit with an errorlevel of eight if the environment is full.
A missing or unusable environmental variable sets errorlevel two.
Successful termination returns an errorlevel of zero.
The file size of JUMP.EXE may be reduced 25% by using PKLITE on it.
IMPORTANT, this freeware program has not been extensively tested.
Evaluate it, and determine its suitability for your usage before you
utilize it in a unattended batch file.