home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / utils / switch.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-11-21  |  1KB  |  59 lines

  1. echo off
  2. cls
  3. echo 
  4. echo      Switch v1.2 Installation
  5. echo 
  6. echo 
  7.  
  8. if "%1"=="" goto noparam
  9. echo      Installing Switch v1.2 to c:\%1.
  10. goto continue
  11.  
  12. :noparam
  13. echo      Installing Switch v1.2 to c:\switch.
  14.  
  15. :continue
  16. echo 
  17. echo 
  18. if exist c:\switch.bat del c:\switch.bat
  19. if "%1"=="" goto noparam2
  20. if not exist c:\%1\*.* md c:\%1
  21. copy switch.exe c:\%1
  22. copy switch.pif c:\%1
  23. copy switch.ico c:\%1
  24. copy help*.dat c:\%1 
  25.  
  26. echo echo off >>c:\switch.bat
  27. echo c: >>c:\switch.bat
  28. echo cd \%1 >>c:\switch.bat
  29. c:
  30. cd \%1
  31.  
  32. goto continue_on
  33.  
  34. :noparam2
  35. if not exist c:\switch\*.* md c:\switch
  36. copy switch.exe c:\switch
  37. copy switch.pif c:\switch
  38. copy switch.ico c:\switch
  39. copy help*.dat c:\switch
  40.  
  41. echo echo off >>c:\switch.bat
  42. echo c: >>c:\switch.bat
  43. echo cd \switch >>c:\switch.bat
  44. c:
  45. cd \switch
  46.  
  47. :continue_on
  48.  
  49. echo switch %%1 %%2 >>c:\switch.bat
  50. echo cd \ >>c:\switch.bat
  51.  
  52. cd \
  53. echo 
  54. echo 
  55. echo      Switch v1.2 has been installed.
  56. echo 
  57. echo      Type SWITCH to run it.
  58. echo 
  59.