home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / CDSG.ZIP / CDS.BAT < prev    next >
DOS Batch File  |  1993-09-20  |  2KB  |  46 lines

  1. @echo off
  2. echo Change Directory Set/Go - by GLen  March 1992
  3. if !%1==! goto intro
  4. if !%cdsg%==! goto noFile
  5. cd > %cdsg%\%1
  6. echo Current directory saved with key "%1". Use  "CDG %1"  to retrieve.
  7. goto end
  8.  
  9. :intro
  10. echo.
  11. echo CDSG is a system of saving your current position (drive and path) and then
  12. echo returning to that point later. It was specifically designed to work between
  13. echo the OS/2 and DOS command prompts of an OS/2 computer.
  14. echo.
  15. echo A environment variable called "CDSG" must be set in AUTOEXEC.BAT and/or
  16. echo OS/2's CONFIG.SYS and must contain the name and path of a file. That filename
  17. echo must not have an extension.    e.g. SET CDSG=D:\TEMPFILE\CDSG
  18. echo.
  19. echo Use CDS [key] and CDG [key] to Save and Goto specific directories. The
  20. echo 'key' parameter is any series of letters (only first 3 significant) to
  21. echo identify this directory.  Until that 'key' is re-used in a CDS command,
  22. echo it is saved to disk permanently.
  23. echo.
  24. echo This CDSG system uses DOS and OS/2 batch files as well as a DOS TurboPascal
  25. echo program and an OS/2 REXX program.
  26. echo.
  27. echo.
  28. echo The current CDSG environment variable is now "%CDSG%".
  29. echo.
  30. echo Example:
  31. echo   To save your current location (in OS/2 or DOS)...
  32. echo      CDS 1
  33. echo   To save a different location later (in OS/2 or DOS)...
  34. echo      CDS ab
  35. echo   To latter return to the first location (in OS/2 or DOS)...
  36. echo      CDG 1
  37. echo.
  38. goto end
  39.  
  40. :noFile
  41. echo Error: Environment string CDSG is not set correctly.
  42. echo        Type CDS for instructions.
  43. echo.
  44.  
  45. :end
  46.