home *** CD-ROM | disk | FTP | other *** search
/ CBM Funet Archive / cbm-funet-archive-2003.iso / cbm / c128 / os / cs-dos / cs-batch.sfx / dex < prev    next >
Encoding:
Text File  |  1990-02-12  |  810 b   |  44 lines

  1. text
  2. pushdir
  3. echo"CS-DOS Rolodex
  4. echo Randy Winchester
  5. echo 2/13/93
  6. if "%2"=" "goto nodrive
  7. x$="%2":a=asc(x$):sys5888,a
  8. :nodrive
  9. if "%1"=" "goto noarg
  10. if "%1"="/e"goto edit
  11. if "%1"="/s"goto save
  12. if exist dex.txt grep -y %1 dex.txt
  13. if exist dex.txt goto done
  14. sys5888,90
  15. if exist dex.txt grep -y %1 dex.txt
  16. if not exist dex.txt goto notfound
  17. goto done
  18. :edit
  19. if exist dex.txt get dex.txt
  20. if exist dex.txt goto list
  21. sys5888,90
  22. if exist dex.txt get dex.txt
  23. if not exist dex.txt goto notfound
  24. goto list
  25. :notfound
  26. echo"Dex.txt not found!
  27. goto done
  28. :save
  29. echo Save dex.txt?
  30. getkey
  31. if not errorlevel 89 goto list
  32. put dex.txt
  33. goto list
  34. :noarg
  35. echo"Usage:
  36. echo %0 /e [d]      edit dex.txt [drive of dex.txt]
  37. echo %0 /s [d]      save dex.txt
  38. echo %0 string [d]  find string in dex.txt
  39. goto done
  40. :list
  41. list
  42. :done
  43. popdir
  44.