home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 July / VPR9907B.BIN / DRIVER / IBM / IER108WJ / ier1081.exe / MAKEMS.BAT < prev    next >
DOS Batch File  |  1998-12-16  |  3KB  |  111 lines

  1. echo off
  2. cls
  3. rem makedisk batch for Microsoft files.
  4. rem created 5/6/98
  5. rem last modified 12/16/98
  6. rem minimum requirements DOS 6.22 or NT 3.51 or Window 95 or newer
  7.  
  8. rem Check that proper source (%1) and destination (%2) are supplied
  9. if "%1" == "" goto USAGE
  10. if "%2" == "" goto USAGE
  11. if not exist %1\net82557.inf goto NOSOURCE
  12.  
  13. rem Echo what we are about to do
  14. echo This batch file will copy the Microsoft files from %1 to %2
  15. echo press CTRL-C and answer Y if this is NOT correct,
  16. echo otherwise,
  17. pause
  18.  
  19. cls
  20. rem setup paths
  21. set SP=%path%
  22. set path=%path%;%winbootdir%\command;%SystemRoot%\system32;c:\dos
  23. echo.
  24. echo Copying Microsoft files from %1 to %2
  25. echo.
  26.  
  27. :testcopy
  28. xcopy %1\net82557.inf %2\
  29. if errorlevel 1 goto NOCOPY
  30.  
  31. :makedirs
  32. md %2\DOS 
  33. md %2\NT 
  34. md %2\NDIS
  35. md %2\WFW
  36. md %2\WIN95 
  37. md %2\WIN98 
  38. md %2\INFO  
  39. md %2\INFO\GENERAL
  40. md %2\INFO\MS
  41. md %2\INFO\OTHER
  42. md %2\INFO\NETWARE
  43. md %2\INFO\IBM
  44.  
  45. :copyfile
  46. xcopy %1\8255XNDI.DL_ %2\
  47. xcopy %1\D100DISK  %2\ 
  48. xcopy %1\OEMSETUP.INF %2\  
  49. xcopy %1\README.BAT %2\  
  50. copy  %1\READMEMS.LST %2\README.LST  
  51. xcopy %1\MICROSFT.LST %2\  
  52. xcopy %1\NOVELL.LST %2\  
  53. xcopy %1\OTHER.LST %2\  
  54. xcopy %1\SETUP.EXE %2\   
  55. xcopy %1\FILES.TXT %2\
  56. xcopy %1\DOS\*.* %2\DOS\  
  57. xcopy %1\NT\*.* %2\NT\  
  58. xcopy %1\NDIS\*.* %2\NDIS
  59. xcopy %1\WFW\*.* %2\WFW\
  60. xcopy %1\WIN95\*.* %2\WIN95\  /S /E /V  
  61. xcopy %1\WIN98\*.* %2\WIN98\  /S /E /V  
  62. xcopy %1\INFO\GENERAL\*.TXT %2\INFO\GENERAL /S /E /V  
  63. xcopy %1\INFO\OTHER\*.* %2\INFO\OTHER /S /E /V  
  64. xcopy %1\INFO\MS\*.* %2\INFO\MS  /S /E /V  
  65. xcopy %1\INFO\NETWARE\*.* %2\INFO\NETWARE /S /E /V  
  66. xcopy %1\INFO\IBM\*.* %2\INFO\IBM /S /E /V  
  67. cls
  68. echo.
  69. echo.
  70. echo PLEASE LABEL YOUR DISKETTE
  71. echo Intel(R) PRO/100+ LAN Adapter Configuration
  72. echo and Microsoft Drivers Diskette Release (release # from your CD label)
  73. goto END
  74.  
  75. :NOSOURCE
  76. echo.
  77. echo Can not find the files at the source (%1) you specified.
  78. echo Please correct and try again
  79. goto usage
  80.  
  81. :NOCOPY
  82. echo.
  83. echo Can not copy from %1 to %2.
  84. echo Please check your syntax and try again
  85. goto usage
  86.  
  87. :usage
  88. echo.
  89. echo usage rules;
  90. echo %0 [source] [destination]
  91. echo.
  92. echo where [source] is the drive letter with the colon and path of the
  93. echo source files (such as D:) and where [destination] is the drive
  94. echo letter with the colon (such as A:)
  95. echo Do not add a trailing backslash (\) to the source or destination path.
  96. echo [destination] is also expected to be formatted media.
  97. echo. 
  98. echo for example:
  99. echo        %0 D: A:
  100. echo.
  101. pause
  102. goto END
  103.  
  104. :END
  105. rem reset path
  106. if "%SP%" == "" goto FINISH
  107. set path=%SP%
  108. set SP=
  109.  
  110. :FINISH
  111.