home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / BF / BF154.ZIP / INSTALL.BAT next >
DOS Batch File  |  1991-09-23  |  2KB  |  78 lines

  1. @echo off
  2. cls
  3.  
  4. if "%1==" goto hlpinst
  5. if "%2==" goto hlpinst
  6.  
  7. :loop1
  8. Cls
  9. pause
  10. cls
  11. echo Insert Program Disk in drive %1
  12. echo Files will be copied to %2\ICP
  13. echo .
  14. pause
  15. if exist unpack.exe goto ok1
  16.  
  17. cls
  18. echo Wrong disk or missing files...
  19. echo INSTALLATION ABORTED!
  20. goto end
  21.  
  22. :ok1
  23. cls
  24. echo Copying the ICP System files to Drive %2\ICP
  25. %2
  26. cd\
  27. md\icp
  28. cd\ICP
  29. if exist inven.dbf goto ok2
  30. %1unpack
  31. goto ok3
  32.  
  33. :ok3
  34. cls
  35. echo ICP System files successfully installed.
  36. echo .
  37. echo WARNING! The ICP will not run unless certain system parameters are
  38. echo properly established. Consult the "readme.doc" file for information 
  39. echo concerning this process. 
  40. echo .
  41. echo You may print document files by typing the command "print <file.ext>".
  42. echo For example, to print the readme.doc file, type "print readme.doc " 
  43. echo and hit the ENTER key.
  44. echo .
  45. echo You may view document files by entering the command "view <file.ext>".
  46. echo For example, to view the readme.doc file, type "view readme.doc" and 
  47. echo hit the ENTER key.
  48. echo .
  49. echo For information about the PICS point-of-sale package, refer to the 
  50. ECHO pics.doc file!
  51. ECHO .
  52. echo Thank you!
  53. echo God Bless!
  54. goto end
  55.  
  56. :hlpinst
  57. cls
  58. echo The correct syntax is "install <source: target:>"
  59. echo INSTALLATION ABORTED!
  60. goto end
  61.  
  62. :ok2
  63. RENAME INVEN.* XINVEN.*
  64. rename help.* xhelp.*
  65. rename po.* xpo.*
  66. rename vendor.* xvendor.*
  67. del *.bat
  68. del *.doc
  69. del *.exe
  70. del *.frm
  71. del *.ntx
  72. del config.sys
  73. %1unpack
  74. TRANSFER
  75. del transfer.exe
  76. goto ok3
  77.  
  78. :end