home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
11a
/
ccd.zip
/
CCD.BAT
Wrap
DOS Batch File
|
1987-04-24
|
1KB
|
31 lines
echo off
if '%1==' goto syntax
IF NOT EXIST %1\*.* GOTO TRYABOVE
CD %1
:TRYABOVE
IF NOT EXIST ..\%1\*.* GOTO ROOT
CD ..\%1
GOTO END
:ROOT
CD \%1
GOTO END
:syntax
echo
echo CCD.BAT by Wayne King
echo 30 Sickles St. #3F
echo NYC NY 10040
echo
echo CCD allows you to change directories without
echo the typing the @#$! backslash '\' key!
echo SYNTAX: ccd [directory name]
echo
echo example: the current directory is C:\DOS
echo you wish to change to the directory C:\LOTUS
echo -- just type CCD LOTUS
echo CCD will first check for a subdirectory under the
echo current directory--if one does not find one then it will
echo move up 1 directory & try again, then try the root dir.
echo (this batch file will run faster if you delete these
echo instructions--the lines between :syntax and :END
:END