home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 20 NDrivers / 20-NDrivers.zip / wplan5.zip / CPY2HDSK.BAT < prev    next >
DOS Batch File  |  1996-09-17  |  2KB  |  66 lines

  1. echo off
  2. cls
  3. rem *** perform basic checks ***
  4. if not exist util\confutil.exe goto not_logged_on
  5. if "%1"=="" goto no_params
  6. if exist %1\util\confutil.exe goto dir_exists
  7. rem
  8. rem *** start copying ***
  9. echo Copying WavePOINT files to harddisk
  10. echo ===================================
  11. echo.
  12. echo One moment please....
  13. md %1
  14. copy cf2boot.bat %1 > NUL:
  15. copy readme.1st %1 > NUL:
  16. copy utl2boot.bat %1 > NUL:
  17. copy wpntprf.txt %1 > NUL:
  18. md %1\env
  19. copy \env\*.* %1\env > NUL:
  20. md %1\util
  21. copy \util\*.* %1\util > NUL:
  22. md %1\mib
  23. copy \mib\*.* %1\mib > NUL:
  24.  
  25. echo cd %1\util >> %1\env\autoexec.bat
  26. echo confutil >> %1\env\autoexec.bat
  27.  
  28. echo.
  29. echo 1) Change to the %1 directory on the hard disk.
  30. echo 2) Insert a blank formatted diskette in drive A:.
  31. echo 3) Execute the batch file CF2BOOT.BAT to create a Configurator environment
  32. echo    diskette.
  33. echo    Execute the batch file UTL2BOOT.BAT to create a utilities environment
  34. echo    diskette. Utilities are:
  35. echo                   Access Control Table Manager;
  36. echo                   Point-to-Point Diagnostics;
  37. echo                   WaveMonitor Tool;
  38. echo                   WaveLAN Frequency Select Utility.
  39. echo.
  40. goto end
  41. rem ----------------------------------------------------------------------------
  42. :not_logged_on
  43. echo You must be at the prompt of the drive containing the WavePOINT diskette
  44. echo to run this batch file (e.g. A:).
  45. goto err_end
  46. rem ----------------------------------------------------------------------------
  47. :no_params
  48. echo You must supply the destination path on the command line,
  49. echo e.g. cpy2hdsk c:\wavepnt.
  50. goto err_end
  51. rem ----------------------------------------------------------------------------
  52. :dir_exists
  53. echo The directory %1 already exists, please remove this directory 
  54. echo before installing the WavePOINT software.
  55. echo.
  56. echo NOTE: You may wish to keep the configuration files (WPLOG.TXT, xxxx.CFG,
  57. echo       xxxx.TBL) from the old directory.
  58. rem ----------------------------------------------------------------------------
  59. goto err_end
  60. :end
  61. echo.
  62. c:
  63. cd %1
  64. :err_end
  65. echo on
  66.