Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.5 KiB

  1. @echo off
  2. rem RasCopy must be executed before running Remote Access
  3. rem with Workgroup Add-On, see the file README.TXT in the
  4. rem Workgroup Add-On directory for more information on
  5. rem installing Remote Access.
  6. set wcpath=.
  7. if "%1"=="/?" goto syntax
  8. if exist .\ifshlp.sys goto getsrc
  9. set wcpath=%1
  10. if "%1"=="" goto syntax
  11. if exist %1\ifshlp.sys goto getsrc
  12. goto notwc
  13. :getsrc
  14. set raspath=a:
  15. if not "%2"=="" set raspath=%2
  16. if not exist %wcpath%\expand.exe goto notwc
  17. :ask1
  18. echo Please insert Remote Access 1.1a disk #1 into %raspath%
  19. pause
  20. if not exist %raspath%\wfwsetup.exe goto ask1
  21. md %wcpath%\ras
  22. echo copying %raspath%\wfwsetup.exe to %wcpath%\ras\setup.exe
  23. copy %raspath%\wfwsetup.exe %wcpath%\ras\setup.exe
  24. echo copying %raspath%\setup.msg to %wcpath%\ras
  25. copy %raspath%\setup.msg %wcpath%\ras
  26. echo copying %raspath%\modems.inf to %wcpath%
  27. copy %raspath%\modems.inf %wcpath%
  28. echo copying %raspath%\pad.inf to %wcpath%
  29. copy %raspath%\pad.inf %wcpath%
  30. %wcpath%\expand.exe %raspath%\rasphone.ms$ %wcpath%\rasphone.msg
  31. %wcpath%\expand.exe %raspath%\rasdial.ms$ %wcpath%\rasdial.msg
  32. %wcpath%\expand.exe %raspath%\dos\netprog\rasdial.ex$ %wcpath%\rasdial.exe
  33. %wcpath%\expand.exe %raspath%\dos\netprog\vcommiod.ex$ %wcpath%\ras\vcommiod.exe
  34. %wcpath%\expand.exe %raspath%\dos\netprog\wantsr.ex$ %wcpath%\ras\wantsr.exe
  35. %wcpath%\expand.exe %raspath%\dos\drivers\async\asymac.do$ %wcpath%\asymac.dos
  36. %wcpath%\expand.exe %raspath%\dos\drivers\protocol\asybeui\asybeui.ex$ %wcpath%\ras\asybeui.exe
  37. :ask2
  38. echo Please insert Remote Access 1.1a disk #2 into %raspath%
  39. pause
  40. if not exist %raspath%\dos\netprog\rasphone.ex$ goto ask2
  41. %wcpath%\expand.exe %raspath%\dos\netprog\rasphone.ex$ %wcpath%\rasphone.exe
  42. %wcpath%\expand.exe %raspath%\dos\netprog\rasphone.hl$ %wcpath%\rasphone.hlp
  43. echo RasCopy has copied Remote Access 1.1a files to your Workgroup
  44. echo Add-On directory. Please read the file README.TXT for more
  45. echo information on setting up Remote Access 1.1a with Workgroup Add-On.
  46. goto exit
  47. :notwc
  48. echo ERROR - "%1" is not a Workgroup Add-On directory.
  49. echo Type "RasCopy /?" for syntax.
  50. goto exit
  51. :syntax
  52. echo Syntax:
  53. echo RASCOPY destination [source]
  54. echo destination Specifies the Workgroup Add-On directory where
  55. echo Remote Access 1.1a files will be copied.
  56. echo source Specifies the location of Remote Access 1.1a files.
  57. echo This parameter is optional. The path a:\
  58. echo is used if this parameter is not used.
  59. echo Example: RASCOPY C:\NET
  60. :exit
  61. set raspath=
  62. set wcpath=
  63. @echo on