home *** CD-ROM | disk | FTP | other *** search
- @echo off
- if not exist %0t.com goto wrong
- if not exist %01.dat goto wrong
- if not "%1" == "" goto wrong
- if exist install1.dat goto wrong
- echo ┌────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ MetaWare High C Locally Optimizing Compiler Installation. │
- echo │ │
- echo └────────────────────────────────────────────────────────────────────────┘
-
- echo dummy > install1.bat
- if exist %01.bat goto unsafe2
- if not exist install1.bat goto unsafe
- del install1.bat
- %0t **;%01.dat;install1.bat;4500=%0=
- if errorlevel 1 goto finis
- install1
- goto finis
-
- :wrong
- echo ┌────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ The install command was not entered correctly. Please re-enter it │
- echo │ in this form for installing from the a: disk drive - │
- echo │ a:install │
- echo │ or in this form for installing from the b: disk drive - │
- echo │ b:install │
- echo │ The current (default) disk should be your hard disk, and the │
- echo │ current directory is where High C will be installed. │
- echo │ │
- echo │ │
- echo │ You can make any directory current with these commands: │
- echo │ x: to select the drive where the compiler will install. │
- echo │ mkdir \dir-name to create the directory for the compiler. │
- echo │ chdir \dir-name to make this the current directory. │
- echo │ │
- echo │ │
- echo └────────────────────────────────────────────────────────────────────────┘
- goto finis
-
- :unsafe2
- del install1.bat
- :unsafe
- echo
- echo │ THE TARGET DISK IS THE SAME AS THE DISTRIBUTION DISK! INSTALLATION HALTED
- echo │ The target disk (the current drive) is the same drive as the distribution
- echo │ diskette. You MUST run this installation program from the drive and
- echo │ directory in which you wish the compiler to be installed.
-
- :finis
-