home *** CD-ROM | disk | FTP | other *** search
/ The SelectWare System Volume 2 #3 / The_SelectWare_System_Series_1_Volume_2_Number_3_Selectware.iso / dbinstal.bat < prev    next >
DOS Batch File  |  1990-05-22  |  1KB  |  59 lines

  1. echo off
  2. CLS
  3. IF A%1%1==A%1 GOTO NEEDPARAM
  4. IF NOT EXIST EMORE.PIC GOTO :WRONGDRIVE
  5.  
  6. echo This batch file installs The SelectWare System database on
  7. echo the hard disk.  It will be installed under the subdirectory
  8. echo %1:\SWTDEMOS\SWT
  9. echo .
  10. echo Type CTRL-C to Exit, or
  11. pause
  12.  
  13. if exist %1:\SWTDEMOS\SW90W.CFG goto :chkswt
  14. echo Creating %1:\SWTDEMOS.
  15. md %1:\swtdemos
  16. md %1:\swtdemos\demo
  17. echo .
  18.  
  19. :chkswt
  20. md %1:\SWTDEMOS\SWT
  21. echo Copying database to drive %1
  22. copy \swt %1:\SWTDEMOS\SWT
  23. echo .
  24. echo .
  25. echo Copying The SelectWare System program files to drive %1
  26. echo 11 files will be copied
  27. copy sw.exe %1:\SWTDEMOS
  28. copy swstart.exe %1:\SWTDEMOS
  29. copy survey.exe %1:\SWTDEMOS
  30. copy *.fnt %1:\SWTDEMOS >nul
  31. echo         2 file(s) copied
  32. copy map.com %1:\SWTDEMOS
  33. copy GOSW.BAT %1:\
  34. copy *.txt %1:\SWTDEMOS >nul
  35. echo         4 file(s) copied
  36.  
  37. %1:
  38. cd \SWTDEMOS
  39. cls
  40. echo The SelectWare System product database has been installed to drive %1.
  41. echo To run, type SWSTART [Enter].
  42.  
  43. GOTO FINISH
  44.  
  45. :NEEDPARAM
  46. echo This batch file installs The SelectWare System database on
  47. echo the hard disk.
  48. echo .
  49. echo To run type SWINSTAL x where x is the hard drive letter
  50. echo       (i.e. SWINSTAL C)
  51. goto :FINISH
  52.  
  53. :WRONGDRIVE
  54. echo To run SWINSTAL, you must be logged onto your CD-ROM drive and
  55. echo in the root directory.
  56. echo .>nul
  57.  
  58. :FINISH
  59.