home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / utlos2.zip / Win32 / cdx.bat < prev    next >
DOS Batch File  |  1997-06-04  |  875b  |  21 lines

  1. @echo off
  2. : $Id: cdx.bat 1.4 1997/06/05 02:23:16 brian Exp $
  3. :------------------------------------------------------------------------------
  4. : This batch file 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.bat
  20.   c:\tmp\_tmpcdx.bat
  21.