home *** CD-ROM | disk | FTP | other *** search
/ The Mother of All Windows Books / CD-MOM.iso / cd_mom / utility / lang / batutil / install.bat
DOS Batch File  |  1993-08-29  |  2KB  |  64 lines

  1. @echo off
  2. batutil\batutil {in %0 startcode}
  3. goto end
  4. :startcode
  5. la top
  6. at $0A}{ cls }{ ro 4 }{ col 5
  7. echo Welcome to the BATUTIL/STACKEY install$_
  8. echo $S      It is $E$_$_$_$_
  9. ME install$SBatutil install$SStackey Exit
  10. go menu$r
  11. la menu1
  12. echo Please enter the full pathname where you want to put BATUTIL: (blank dir exits)$_
  13. la askbat
  14. ?L 80 }{ SET $1=$Q
  15. if $s(S,$1)=0 then go menu0
  16. if ~$s(C,$1,2,1)=: then begin
  17.   echo $_You must begin with a drive letter and a : - try again$_
  18.   go askbat
  19. end
  20. ru command /c md $1
  21. check $!($1)
  22. if $r=9 then begin
  23.   echo $_Could not make directory; please start over$_
  24.   go halt
  25. end
  26. ru command /c copy batutil\*.* $1
  27. exist $!($1\batutil.exe)
  28. if ~$r=0 then begin
  29.   echo install was not sucessful!!$_
  30.   go halt
  31. end
  32. echo Install Sucessful; Run BUDEMO to see what Batutil can do
  33. ge wa3 el
  34. go top
  35. la menu2
  36. echo Please enter the full pathname where you want to put STACKEY: (blank dir exits)$_
  37. la askskey
  38. ?L 80 }{ SET $1=$Q
  39. if $s(S,$1)=0 then go menu0
  40. if ~$s(C,$1,2,1)=: then begin
  41.   echo $_You must begin with a drive letter and a : - try again$_
  42.   go askskey
  43. end
  44. ru command /c md $1
  45. check $!($1)
  46. if $r=9 then begin
  47.   echo $_Could not make directory; please start over$_
  48.   go halt
  49. end
  50. ru command /c copy stackey\*.* $1
  51. exist $!($1\stackey.com)
  52. if ~$r=0 then begin
  53.   echo install was not sucessful!!$_
  54.   go halt
  55. end
  56. echo Install Sucessful
  57. ge wa3 el
  58. go top
  59. la menu3
  60. la menu0
  61. echo Thanks for installing STACKEY and/or BATUTIL$_
  62. go halt
  63. :end
  64.