home *** CD-ROM | disk | FTP | other *** search
- ; Batch file for PartEd (SpeedStor II)
- ; Copyright (c) 1986 Hexis Design, Los Gatos CA
- ; Last Update: July 21,1986
-
- @SetExitCode 27 @IFerror TypeFailure @IFescKey StdAbort BEGIN @GOTO MacStart
- :MacStart @SETarg4 1 @IFarg1eq DRIVE2 InitDriveTwo @IFarg2eq DRIVE2 InitDriveTwo
- @IFarg3eq DRIVE2 InitDriveTwo @GOTO WeAreOnDrive :InitDriveTwo @SETarg4 2
- @NOT @IFmenu N NoDriveTwo @IFerror TypeFailure N :WeAreOnDrive
- @IFarg1eq DOSEXT ProcDOSEXT @IFarg2eq DOSEXT ProcDOSEXT @IFarg3eq DOSEXT ProcDOSEXT
- @GOTO ProcNORMAL :ProcNORMAL @NOT @IFarg4eq 1 PNafterBoot @NOT @IFmenu
- C PNafterBoot C @NOT @IFmenu B PNescAfterBoot C @SETarg3 2 @IFmenu 2
- PNtryLargeBoot @SETarg3 3 @IFmenu 3 PNhaveAsize @SETarg3 4 @IFmenu 4
- PNhaveAsize @SETarg3 L :PNhaveAsize @KEYESC C B @Arg3 @GOTO PNdoBootFmt
- :PNtryLargeBoot @KEYESC C B L @NOT @IFmenu C PNdoBootFmt D 1 Y C B 2
- @GOTO PNdoBootFmt :PNdoBootFmt @IFerror FMTerror F 1 Y @KEYCR
- @GOTO PNafterBoot :PNescAfterBoot @KEYESC :PNafterBoot
- :PNcompLoop @NOT @IFmenu C PNdone C C @SETarg3 2 @IFmenu 2 PNtryLargeComp
- @SETarg3 3 @IFmenu 3 PNhaveCompSize @SETarg3 4 @IFmenu 4 PNhaveCompSize
- @SETarg3 L :PNhaveCompSize @Arg3
- @GOTO PNdoCompFMT :PNtryLargeComp L @NOT @IFmenu C PNdoCompFMT D @SETarg3 8
- @IFmenu 8 PNdelLcomp @SETarg3 7 @IFmenu 7 PNdelLcomp @SETarg3 6 @IFmenu 6
- PNdelLcomp @SETarg3 5 @IFmenu 5 PNdelLcomp @SETarg3 4 @IFmenu 4 PNdelLcomp
- @SETarg3 3 @IFmenu 3 PNdelLcomp @SETarg3 2 @IFmenu 2 PNdelLcomp
- @SETarg3 1 @IFmenu 1 PNdelLcomp @GOTO WaitAbort :PNdelLcomp @Arg3 Y C C 2
- :PNdoCompFMT F @SETarg3 8 @IFmenu 8 PNhaveLast
- @SETarg3 7 @IFmenu 7 PNhaveLast @SETarg3 6 @IFmenu 6 PNhaveLast
- @SETarg3 5 @IFmenu 5 PNhaveLast @SETarg3 4 @IFmenu 4 PNhaveLast
- @SETarg3 3 @IFmenu 3 PNhaveLast @SETarg3 2 @IFmenu 2 PNhaveLast
- @SETarg3 1 @IFmenu 1 PNhaveLast @GOTO WaitAbort :PNhaveLast @IFerror FMTerror
- @Arg3 Y @KEYCR @GOTO PNcompLoop :REWIND :PNdone @GOTO NormalExit :ProcDOSEXT
- @NOT @IFarg4eq 1 EXTafterBoot :EXTsmallBoot @IFerror WaitAbort
- C @NOT @IFmenu B EXTescAfterBoot B S @NOT @IFinRange 2 EXTuseLargeBoot
- 2 @GOTO EXTdoBootFmt :EXTuseLargeBoot @KEYESC C B L :EXTdoBootFmt @IFerror
- WaitAbort F 1 Y @KEYCR @GOTO EXTafterBoot :EXTescAfterBoot @KEYESC
- :EXTafterBoot @NOT @IFmenu C NormalExit
- @IFerror NULL C E L D F @SETarg3 8 @IFmenu 8 EXThaveLast @SETarg3 7
- @IFmenu 7 EXThaveLast @SETarg3 6 @IFmenu 6 EXThaveLast @SETarg3 5 @IFmenu 5
- EXThaveLast @SETarg3 4 @IFmenu 4 EXThaveLast @SETarg3 3 @IFmenu 3 EXThaveLast
- @SETarg3 2 @IFmenu 2 EXThaveLast @SETarg3 1 @IFmenu 1 EXThaveLast
- @GOTO WaitAbort :EXThaveLast @IFerror FMTerror @ARG3 Yes @KEYCR
- @GOTO NormalExit :TypeFailure @IFerror StdAbort @ClearMenu @Message 4 5
- " Unable to Correctly activate Drive" @Goto WaitAbort
- :FMTerror @IFerror StdAbort @ClearMenu @Message 4 5
- " Partition Format Error" @Goto WaitAbort :NoDriveTwo
- @IFerror StdAbort @ClearMenu @Message 4 5
- " Drive two does NOT exist" @Goto WaitAbort :WaitAbort
- @Message 5 5 " PRESS ANY KEY TO ABORT " @SETarg3
- @UserKey @Goto StdAbort :StdAbort @SetExitCode 27 @KEYESC @KEYESC @KEYESC
- @KEYESC @KEYESC :NormalExit @SetExitCode 0 Q @KEYESC @KEYESC @KEYESC
-
- ;THE END