home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / CO / CO026.ZIP / INSTALL.BAT next >
DOS Batch File  |  1991-04-12  |  3KB  |  116 lines

  1. echo off
  2.  
  3. rem  If you know enough about DOS and want to install the files yourself, just
  4. rem  copy the files to your hard disk.  You don't have to copy INSTALL.BAT to
  5. rem  your hard disk.
  6.  
  7. echo Copr. 1991 Barn Owl Software, all rights reserved
  8. echo 
  9. echo 
  10. echo   Syntax                INSTALL  x:  [path]
  11. echo 
  12. echo 
  13. echo      x:      the disk drive on which you want to install PCFDial
  14. echo 
  15. echo      [path]  optional path where PCFDial files should go.  Defaults to
  16. echo              "\PCFDIAL" if you don't specify another path.
  17. echo 
  18. echo   NOTE: you must specify a drive.  You only need to specify a path if you
  19. echo   want to override the default.  You MUST put at least one space between
  20. echo   the drive and the path if you specify both options.
  21. echo 
  22.  
  23. rem  Did user specify destination drive?
  24. if "%1"==""   goto end
  25. if "%1"=="A:" goto cont1
  26. if "%1"=="B:" goto cont1
  27. if "%1"=="C:" goto cont1
  28. if "%1"=="D:" goto cont1
  29. if "%1"=="E:" goto cont1
  30. if "%1"=="F:" goto cont1
  31. if "%1"=="G:" goto cont1
  32. if "%1"=="H:" goto cont1
  33. if "%1"=="I:" goto cont1
  34. if "%1"=="J:" goto cont1
  35. if "%1"=="K:" goto cont1
  36. if "%1"=="L:" goto cont1
  37. if "%1"=="M:" goto cont1
  38. if "%1"=="N:" goto cont1
  39. if "%1"=="O:" goto cont1
  40. if "%1"=="P:" goto cont1
  41. if "%1"=="Q:" goto cont1
  42. if "%1"=="R:" goto cont1
  43. if "%1"=="S:" goto cont1
  44. if "%1"=="T:" goto cont1
  45. if "%1"=="U:" goto cont1
  46. if "%1"=="V:" goto cont1
  47. if "%1"=="W:" goto cont1
  48. if "%1"=="X:" goto cont1
  49. if "%1"=="Y:" goto cont1
  50. if "%1"=="Z:" goto cont1
  51. if "%1"=="a:" goto cont1
  52. if "%1"=="b:" goto cont1
  53. if "%1"=="c:" goto cont1
  54. if "%1"=="d:" goto cont1
  55. if "%1"=="e:" goto cont1
  56. if "%1"=="f:" goto cont1
  57. if "%1"=="g:" goto cont1
  58. if "%1"=="h:" goto cont1
  59. if "%1"=="i:" goto cont1
  60. if "%1"=="j:" goto cont1
  61. if "%1"=="k:" goto cont1
  62. if "%1"=="l:" goto cont1
  63. if "%1"=="m:" goto cont1
  64. if "%1"=="n:" goto cont1
  65. if "%1"=="o:" goto cont1
  66. if "%1"=="p:" goto cont1
  67. if "%1"=="q:" goto cont1
  68. if "%1"=="r:" goto cont1
  69. if "%1"=="s:" goto cont1
  70. if "%1"=="t:" goto cont1
  71. if "%1"=="u:" goto cont1
  72. if "%1"=="v:" goto cont1
  73. if "%1"=="w:" goto cont1
  74. if "%1"=="x:" goto cont1
  75. if "%1"=="y:" goto cont1
  76. if "%1"=="z:" goto cont1
  77. rem else...
  78. echo YOU MUST SPECIFY A VALID DESTINATION DRIVE
  79. goto end
  80.  
  81. :cont1
  82. rem  Switch to the master disk drive if necessary.
  83. if EXIST PCFDIAL.EXE goto cont2
  84. rem else...
  85. echo YOU MUST RUN THIS INSTALL PROGRAM FROM THE DEFAULT DRIVE
  86. echo Enter the name of the drive holding the master PCFDial disk
  87. echo (usually A: or B:), press ENTER, then re-run Install.
  88. goto end
  89.  
  90. :cont2
  91. echo Creating destination directory (if it doesn't already exist)
  92. if     "%2"=="" md %1\PCFDIAL >NUL
  93. if NOT "%2"=="" md %1%2       >NUL
  94.  
  95. echo Copying PCFDial files to the destination directory
  96. if     "%2"=="" copy READ.*   %1\PCFDIAL
  97. if     "%2"=="" copy PCFD*.*  %1\PCFDIAL
  98. if     "%2"=="" copy *.INF    %1\PCFDIAL
  99. if NOT "%2"=="" copy READ.*   %1%2
  100. if NOT "%2"=="" copy PCFD*.*  %1%2
  101. if NOT "%2"=="" copy *.INF    %1%2
  102.  
  103. echo Switching to the PCFDial directory
  104. %1
  105. if     "%2"=="" cd \PCFDIAL
  106. if NOT "%2"=="" cd %2
  107. echo 
  108. echo 
  109. echo PCFDIAL TRANSFERRED
  110. echo 
  111. echo Please type "PCFDIAL /INSTALL" and press ENTER to customize the
  112. echo program for your needs.
  113.  
  114. :end
  115. echo 
  116.