home *** CD-ROM | disk | FTP | other *** search
/ Software Collection (I) / TOOLS.iso / b04 / 6.img / NETINST.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-03-17  |  4.2 KB  |  156 lines

  1. echo off
  2. cls
  3. echo **********************************************************
  4. echo **  Windows 3.1 Network Compatiblity Test Installation **
  5. echo **********************************************************
  6. echo 
  7. echo 
  8. if (%1)==() goto USAGE
  9. if (%2)==() goto USAGE
  10. if NOT EXIST APPLET.wtd goto NOTFLOP
  11. copy APPLET.wtd %1\APPLET.wtd
  12. if NOT EXIST %1\APPLET.wtd goto DIRERR
  13. if NOT EXIST %2\win.com goto WDIRERR
  14. goto CONT
  15. :DIRERR
  16. cls
  17. echo ******************************************************
  18. echo 
  19. echo Sorry, the %1 directory must exist in order
  20. echo for the NCT files to correctly install.  Please use
  21. echo the DOS Make Directory (MD) command to create an NCT
  22. echo directory.
  23. echo 
  24. echo Example:  MD C:\NCT31
  25. echo 
  26. echo ******************************************************
  27. goto END
  28. :WDIRERR
  29. CLS
  30. echo ******************************************************
  31. echo 
  32. echo Sorry, the %2 directory must exist in order
  33. echo for the NCT files to correctly install.  Please also
  34. echo verify that %2 represents the directory on your
  35. echo hard drive in which Windows version 3.1 is installed.
  36. echo 
  37. echo ******************************************************
  38. goto END
  39.  
  40. :NOTFLOP
  41. CLS
  42. echo ******************************************************
  43. echo 
  44. echo Sorry, please make sure that you are running the
  45. echo Install batch file from the floppy drive containing the
  46. echo the NCT diskette labeled "Windows 3.1 NCT Disk #1".
  47. echo 
  48. echo ******************************************************
  49. goto END
  50.  
  51. :NOTDISK2
  52. CLS
  53. echo ******************************************************
  54. echo 
  55. echo Sorry, please make sure that you have inserted the
  56. echo NCT diskette labeled "Windows 3.1 NCT Disk #2".
  57. echo 
  58. echo Strike any key to continue.
  59. echo ******************************************************
  60. pause 
  61. goto TRYDISK2
  62.  
  63. :USAGE
  64. CLS
  65. echo *************************************************
  66. echo 
  67. echo The correct usage of the Install batch file is:
  68. echo 
  69. echo Install [C:\][NCTDIR] [C:\][WINDIR]
  70. echo 
  71. echo Where C:\ is a valid hard drive partition, NCTDIR
  72. echo is the directory that you wish to install the NCT
  73. echo files into, and WINDIR is the directory that you
  74. echo have already installed Windows version 3.1.
  75. echo 
  76. echo Example:   INSTALL  C:\NCT31  C:\WINDOWS
  77. echo 
  78. echo *************************************************
  79. goto END
  80.  
  81. :CONT
  82. expand *.* %1                  
  83. attrib +r %1\*.exe
  84. ATTRIB +R %1\*.wtd
  85. attrib +r %1\*.pif
  86. attrib +r %1\*.bat
  87. attrib +r %1\*.dll
  88. attrib +r %1\*.inc
  89.  
  90. :Question
  91. cls
  92. echo ******************************************************
  93. echo 
  94. echo Do you want to install the NCT documentation (Winword
  95. echo document) into the NCT directory?  The documentation 
  96. echo is NOT compressed and is readily available on NCT
  97. echo Disk #2 at any time.
  98. echo 
  99. echo 
  100. echo You will also find important NCT notes in the README.TXT
  101. echo file which has been installed in the specified NCT
  102. echo directory.  It is also available on NCT disk #2.
  103. echo 
  104. ync /c yn "Do you want to install the NCT Documentation (Yes, No)?"
  105.  
  106. if NOT ERRORLEVEL 1 goto DISK2
  107. goto ask286
  108.  
  109.  
  110. :DISK2
  111. :TRYDISK2
  112. cd ..\disk2
  113. if NOT EXIST nct.doc goto NOTDISK2
  114.  
  115. copy *.txt %1                  
  116. copy *.doc %1
  117. attrib +r %1\*.txt
  118. ATTRIB +R %1\*.doc
  119.  
  120. :ASK286
  121. cls
  122. echo ******************************************************
  123. echo 
  124. echo Hardware Configuration:
  125. ync /c yn "Are you running on a 286 based system (Yes, No)?"
  126.  
  127. if ERRORLEVEL 1 goto 386
  128. copy %1\winNCT.286 %1\winNCT.ini
  129.  
  130. :386
  131. copy %1\winplay.ini %2
  132. copy %1\winNCT.ini  %2
  133. echo homedir=%1 >> %2\winNCT.ini
  134. echo homedir=%1 >> %1\winnct.ini
  135.  
  136. ren %1\winplay.ini wplay.ini
  137. ren %1\winnct.ini wnct.ini
  138. cls
  139.  
  140. :LASTMESSAGE
  141. cls
  142. echo ***********************************************************
  143. echo 
  144. echo Windows NCT Installation Batch File Complete
  145. echo 
  146. echo If you are unfamiliar with the NCT please consult the 
  147. echo NCT documentation - "Executing the NCT" - on how to 
  148. echo run the NCT.  
  149. echo 
  150. echo Also, refer to the README.TXT on this diskette for
  151. echo further information not found in the NCT documentation.
  152. echo (note: readme.txt is also available in the NCT directory)
  153. echo 
  154. echo **********************************************************
  155. :END
  156.