home *** CD-ROM | disk | FTP | other *** search
- rem MATLAB hard disk installation batch file part II.
- if not exist matpak.1 goto errorexit
- if not exist %1:lastdisk goto AGAIN2
- ren matpak.1 matpak.exe
- goto FINISH
- :AGAIN2
- echo .
- echo Please insert MATLAB Disk 2 into drive %1:
- pause
- if not exist %1:matpak.2 goto again2
- copy %1:*.*
- if not exist matpak.2 goto errorexit
- copy /b matpak.1+matpak.2 matpak.exe
- del matpak.1
- del matpak.2
- if not exist matpak.exe goto errorexit
- if exist %1:lastdisk goto FINISH
- :AGAIN3
- echo .
- echo Please insert MATLAB Disk 3 into drive %1:
- pause
- if not exist %1:matpak.3 goto again3
- copy %1:*.*
- if not exist matpak.3 goto errorexit
- ren matpak.exe matpak.2
- copy /b matpak.2+matpak.3 matpak.exe
- del matpak.2
- del matpak.3
- if not exist matpak.exe goto errorexit
- if exist %1:lastdisk goto FINISH
- :AGAIN4
- echo .
- echo Please insert MATLAB Disk 4 into drive %1:
- pause
- if not exist %1:matpak.4 goto again4
- copy %1:*.*
- if not exist matpak.4 goto errorexit
- ren matpak.exe matpak.3
- copy /b matpak.3+matpak.4 matpak.exe
- del matpak.3
- del matpak.4
- if not exist matpak.exe goto errorexit
- :FINISH
- del lastdisk
- matpak
- if not errorlevel 0 goto errorexit
- del matpak.exe
- copy sigpak.exe .\signal
- del sigpak.exe
- copy mexpak.exe .\mex
- del mexpak.exe
- cd signal
- sigpak
- if not errorlevel 0 goto errorexit
- del sigpak.exe
- cd ..\mex
- mexpak
- if not errorlevel 0 goto errorexit
- del mexpak.exe
- cd ..
- echo .
- if not exist atmatlab.exe goto okexit
- isat
- if not errorlevel 1 goto okexit
- echo MATLAB has been successfully installed. Since you have a machine
- echo capable of running ATMATLAB.EXE, we are now going to "tune" the
- echo file ATMATLAB.EXE to operate best with your specific computer.
- pause
- tuneit -k atmatlab.exe
- goto END
- :OKEXIT
- echo MATLAB has been successfully installed. Execute "MATLAB" to start.
- goto END
- :ERROREXIT
- echo Installation failure.
- :END