home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 14 / 14.iso / s / s034 / 10.ddi / RASCOPY.BA_ / RASCOPY.BA
Encoding:
Text File  |  1994-07-25  |  2.6 KB  |  81 lines

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