home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo off
- rem AUTOINST.BAT -- Install entire tree of Win++ files.
- rem
- rem This batch file installs all the Win++ files, creating a directory
- rem tree to contain them. The command to use this batch file is as
- rem follows:
- rem
- rem autoinst source_directory target_directory
- rem
- rem where "source_directory" is the disk drive or directory from
- rem which to copy the files.
- rem "target_directory" is the directory path to which to
- rem copy the files.
- rem
- rem "Source_directory" must end in a colon (:) or backslash (\)
- rem character.
- rem
- rem "Target_directory" should not end with a colon (:) or backslash
- rem (\) character. (To specify the root directory of any drive, you
- rem can add "\." to the drive name to meet this requirement, as in
- rem "A:\.".)
- rem
- rem Version 2.00 Copyright (C) Blaise Computing Inc. 1991.
- rem All rights reserved.
-
- if a%2==a goto usage_bad
- if a%3==a goto usage_ok
- :usage_bad
- echo
- echo Usage: %0 source_directory\ target_directory
- echo
- echo "Source_directory\" should end with backslash or colon.
- echo "Target_directory" should not end with backslash or colon.
- echo
- goto exit
- :usage_ok
-
- if exist %2\*.* goto dir_exists
- echo Creating directory %2
- mkdir %2
- :dir_exists
-
- if exist %1maninst.bat call %1maninst bat %1 %2\bat
- if not exist %1maninst.bat call maninst bat %1 %2\bat
-
- if exist %1maninst.bat call %1maninst inc %1 %2\include
- if not exist %1maninst.bat call maninst inc %1 %2\include
-
- if exist %1maninst.bat call %1maninst doc %1 %2\doc
- if not exist %1maninst.bat call maninst doc %1 %2\doc
-
- if exist %1maninst.bat call %1maninst lib %1 %2\lib
- if not exist %1maninst.bat call maninst lib %1 %2\lib
-
- if exist %1maninst.bat call %1maninst dll %1 %2\bin
- if not exist %1maninst.bat call maninst dll %1 %2\bin
-
- if exist %1maninst.bat call %1maninst utl %1 %2\bin
- if not exist %1maninst.bat call maninst utl %1 %2\bin
-
- if exist %1maninst.bat call %1maninst exp %1 %2\demo
- if not exist %1maninst.bat call maninst exp %1 %2\demo
-
- if exist %1maninst.bat call %1maninst src %1 %2\src
- if not exist %1maninst.bat call maninst src %1 %2\src
-
- :exit