home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c085 / 2.ddi / AUTOINST.BAT next >
Encoding:
DOS Batch File  |  1991-04-25  |  2.2 KB  |  69 lines

  1. @echo off
  2. echo off
  3. rem AUTOINST.BAT -- Install entire tree of Win++ files.
  4. rem
  5. rem This batch file installs all the Win++ files, creating a directory
  6. rem tree to contain them.  The command to use this batch file is as
  7. rem follows:
  8. rem
  9. rem     autoinst source_directory target_directory
  10. rem
  11. rem where "source_directory" is the disk drive or directory from
  12. rem           which to copy the files.
  13. rem       "target_directory" is the directory path to which to
  14. rem           copy the files.
  15. rem
  16. rem "Source_directory" must end in a colon (:) or backslash (\)
  17. rem character.
  18. rem
  19. rem "Target_directory" should not end with a colon (:) or backslash
  20. rem (\) character.  (To specify the root directory of any drive, you
  21. rem can add "\." to the drive name to meet this requirement, as in
  22. rem "A:\.".)
  23. rem
  24. rem Version 2.00    Copyright (C) Blaise Computing Inc. 1991.
  25. rem                 All rights reserved.
  26.  
  27. if a%2==a goto usage_bad
  28. if a%3==a goto usage_ok
  29. :usage_bad
  30. echo  
  31. echo Usage:  %0 source_directory\ target_directory
  32. echo  
  33. echo          "Source_directory\" should end with backslash or colon.
  34. echo          "Target_directory" should not end with backslash or colon.
  35. echo 
  36. goto exit
  37. :usage_ok
  38.  
  39. if exist %2\*.* goto dir_exists
  40. echo Creating directory %2
  41. mkdir %2
  42. :dir_exists
  43.  
  44. if     exist %1maninst.bat call %1maninst bat %1 %2\bat
  45. if not exist %1maninst.bat call   maninst bat %1 %2\bat
  46.  
  47. if     exist %1maninst.bat call %1maninst inc %1 %2\include
  48. if not exist %1maninst.bat call   maninst inc %1 %2\include
  49.  
  50. if     exist %1maninst.bat call %1maninst doc %1 %2\doc
  51. if not exist %1maninst.bat call   maninst doc %1 %2\doc
  52.  
  53. if     exist %1maninst.bat call %1maninst lib %1 %2\lib
  54. if not exist %1maninst.bat call   maninst lib %1 %2\lib
  55.  
  56. if     exist %1maninst.bat call %1maninst dll %1 %2\bin
  57. if not exist %1maninst.bat call   maninst dll %1 %2\bin
  58.  
  59. if     exist %1maninst.bat call %1maninst utl %1 %2\bin
  60. if not exist %1maninst.bat call   maninst utl %1 %2\bin
  61.  
  62. if     exist %1maninst.bat call %1maninst exp %1 %2\demo
  63. if not exist %1maninst.bat call   maninst exp %1 %2\demo
  64.  
  65. if     exist %1maninst.bat call %1maninst src %1 %2\src
  66. if not exist %1maninst.bat call   maninst src %1 %2\src
  67.  
  68. :exit
  69.