home *** CD-ROM | disk | FTP | other *** search
- text
- pushdir
- echo"CS-DOS Rolodex
- echo Randy Winchester
- echo 2/13/93
- if "%2"=" "goto nodrive
- x$="%2":a=asc(x$):sys5888,a
- :nodrive
- if "%1"=" "goto noarg
- if "%1"="/e"goto edit
- if "%1"="/s"goto save
- if exist dex.txt grep -y %1 dex.txt
- if exist dex.txt goto done
- sys5888,90
- if exist dex.txt grep -y %1 dex.txt
- if not exist dex.txt goto notfound
- goto done
- :edit
- if exist dex.txt get dex.txt
- if exist dex.txt goto list
- sys5888,90
- if exist dex.txt get dex.txt
- if not exist dex.txt goto notfound
- goto list
- :notfound
- echo"Dex.txt not found!
- goto done
- :save
- echo Save dex.txt?
- getkey
- if not errorlevel 89 goto list
- put dex.txt
- goto list
- :noarg
- echo"Usage:
- echo %0 /e [d] edit dex.txt [drive of dex.txt]
- echo %0 /s [d] save dex.txt
- echo %0 string [d] find string in dex.txt
- goto done
- :list
- list
- :done
- popdir
-