home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 11a / ccd.zip / CCD.BAT
DOS Batch File  |  1987-04-24  |  1KB  |  31 lines

  1. echo off
  2. if '%1==' goto syntax
  3. IF NOT EXIST %1\*.* GOTO TRYABOVE
  4. CD %1
  5. :TRYABOVE
  6. IF NOT EXIST ..\%1\*.* GOTO ROOT
  7. CD ..\%1
  8. GOTO END
  9. :ROOT
  10. CD \%1
  11. GOTO END
  12. :syntax
  13. echo 
  14. echo           CCD.BAT  by Wayne King
  15. echo                    30 Sickles St. #3F
  16. echo                    NYC NY 10040
  17. echo 
  18. echo       CCD allows you to change directories without
  19. echo          the typing the @#$! backslash '\' key!
  20. echo         SYNTAX:  ccd [directory name]
  21. echo 
  22. echo           example:  the current directory is C:\DOS
  23. echo                     you wish to change to the directory C:\LOTUS
  24. echo                     -- just type CCD LOTUS
  25. echo           CCD will first check for a subdirectory under the
  26. echo           current directory--if one does not find one then it will
  27. echo           move up 1 directory & try again, then try the root dir.
  28. echo           (this batch file will run faster if you delete these
  29. echo            instructions--the lines between :syntax and :END
  30. :END
  31.