home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / utlos2.zip / OS2 / CDX.CMD < prev    next >
OS/2 REXX Batch file  |  1997-07-11  |  878b  |  21 lines

  1. @echo off
  2. : $Id: cdx.cmd 1.1 1997/07/11 22:52:30 brian Exp $
  3. :------------------------------------------------------------------------------
  4. : This command script requires the c:\tmp directory and needs the cdir.exe
  5. : program within the current PATH.
  6. :
  7. : This batch file implements the cdx command as follows:
  8. :
  9. :    1. The cdir.exe command is run against the specified drive/path
  10. :       (or no argument, to go to the HOME directory).
  11. :
  12. :    2. The output from cdir is written to a temporary batch file. It contains
  13. :       the commands to change the drive and path as desired.
  14. :
  15. :    2. This cdx.bat file then chains to the newly-created batch file to
  16. :       change the working directory of the parent shell (command.com).
  17. :------------------------------------------------------------------------------
  18.  
  19.   cdir %1 >c:\tmp\_tmpcdx.cmd
  20.   c:\tmp\_tmpcdx.cmd
  21.