home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 010 / jump20.zip / JUMP.DOC < prev    next >
Text File  |  1994-10-18  |  1KB  |  43 lines

  1. October 18, 1994
  2.  
  3. JUMP.EXE version 2.0 is a batch file enhancer to put the current drive
  4. into the environment as OLDRV=d:  where, d is  the drive letter;  and
  5. to put the current path into the environment as OLDIR=CD\xxxx, where
  6. xxxx is the current path. 
  7.  
  8. Syntax is,  JUMP  ,to save the current dirve/directory to the environment,
  9. JUMP R  ,to return to the saved drive/directory and,  JUMP /?  ,for the 
  10. help screen.
  11.  
  12. Here is an example of how JUMP can be used:
  13. @ECHO OFF
  14. JUMP           ;Save current drive and directory to environment.
  15. C:
  16. CD\TELIX
  17. TELIX
  18. JUMP R         ;Return to saved drive and directory.
  19.  
  20. An alternative for returning to the original drive and directory is 
  21. to use the environmental variables directly in the batch file. Like so: 
  22. @ECHO OFF
  23. JUMP
  24. C:
  25. cd\TELIX
  26. TELIX
  27. %OLDRV%
  28. %OLDIR%
  29.  
  30. When you exit either of these batch files, you are on the same drive,
  31. and in the same directory as when you started the batch file. 
  32.  
  33. Jump will exit with an errorlevel of eight if the environment is full.
  34. A missing or unusable environmental variable sets errorlevel two. 
  35. Successful termination returns an errorlevel of zero.
  36.  
  37. The file size of JUMP.EXE may be reduced 25% by using PKLITE on it.
  38.  
  39. IMPORTANT,  this freeware program has not been extensively tested.
  40. Evaluate it, and determine its suitability for your usage before you
  41. utilize it in a unattended batch file. 
  42.  
  43.