home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / CDSG.ZIP / CDS.CMD < prev    next >
OS/2 REXX Batch file  |  1993-09-20  |  2KB  |  48 lines

  1. @echo off
  2. echo Change Directory Set/Go - by GLen
  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 subdirectory.
  17. echo    e.g. SET CDSG=D:\CDSG
  18. echo This subdirectory must be accessable from DOS and OS/2 and may be on a network.
  19. echo.
  20. echo Use CDS [key] and CDG [key] to Save and Goto specific directories. The
  21. echo 'key' parameter is file name used to identify this directory.  It is stored
  22. echo permanently until re-used another CDS command. The 'key' must conform to
  23. echo standard FAT filename conventions (xxxxxxxx.xxx) if it will be used from DOS
  24. echo and OS/2.
  25. echo.
  26. echo This CDSG system uses DOS and OS/2 batch files as well as a DOS TurboPascal
  27. echo program and an OS/2 REXX program.
  28. echo.
  29. echo.
  30. echo The current CDSG environment variable is now "%CDSG%".
  31. echo.
  32. echo Example:
  33. echo   To save your current location (in OS/2 or DOS)...
  34. echo      CDS 1
  35. echo   To save a different location later (in OS/2 or DOS)...
  36. echo      CDS ab
  37. echo   To latter return to the first location (in OS/2 or DOS)...
  38. echo      CDG 1
  39. echo.
  40. goto end
  41.  
  42. :noFile
  43. echo Error: Environment string CDSG is not set correctly.
  44. echo        Type CDS for instructions.
  45. echo.
  46.  
  47. :end
  48.