home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- ECHO ╔════════════════════════════════════════════════════════════╗
- ECHO ║ SETUPF - Toolkit install for floppy disk based system. ║
- ECHO ╟────────────────────────────────────────────────────────────╢
- ECHO ║PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communication Co.║
- ECHO ║ PC Magazine ■ Wolfgang Stiller ║
- ECHO ╚════════════════════════════════════════════════════════════╝
- IF "%1"=="" goto help
- IF %1==? goto help
- IF "%2"=="" goto help
- IF %2==? goto help
- IF %1==%2 goto Dupl
- CLS
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ This batch file is about to check the boot sector on disk %2. It will ║
- ECHO ║ then copy files to the RECOVERY and the CHECK diskettes which will also ║
- ECHO ║ be inserted into drive %2. **Use this only if you have no hard disk.** ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ %1 should be your current disk which has the PCDATA toolkit files. ║
- ECHO ║ %2 should be the diskette which will be checked. If this is not the ║
- ECHO ║ case, please hit CNTL/BREAK to terminate this batch file. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- PAUSE
- IF NOT EXIST CHKBOOT.COM GOTO BadDisk
- IF NOT EXIST CHKFILEC.COM GOTO BadDisk
- GOTO Start
- :Dupl
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ Sorry, you must specify a different disk drive for the RECOVERY diskette║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ If you only have one diskette drive you may usually specify drive B: ║
- ECHO ║ and DOS will treat it as if it were a 2nd drive allowing you to switch ║
- ECHO ║ diskettes. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- ECHO
- :Help
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ Syntax is: SETUPF a: b: ║
- ECHO ║ where a: is the current drive with the PCDATA toolkit files,and ║
- ECHO ║ b: is the drive containing the diskette to be checked. ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ SETUP F Will check the boot sector of the floppy on disk b:. You ║
- ECHO ║ will be prompted to insert the RECOVERY diskette in drive b:. The ║
- ECHO ║ reload file plus needed toolkit files will be copied to it. ║
- ECHO ║ You will also be prompted to insert the CHECK diskette. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- GOTO End
- :BadDisk
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ This batch file MUST be executed from the directory containing the ║
- ECHO ║ PCDATA Toolkit files. One or more of these files is missing! ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ Please check your current directory and disk and try again. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- GOTO END
- :BadChk
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ An unrecoverable error has occurred executing CHKboot. This is usually ║
- ECHO ║ due to disk problems such as no space or write protect. Do you really ║
- ECHO ║ have a second physical hard (fixed) disk? ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- GOTO END
- :NoSYS
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ The CHECK diskette must have been formatted with a "FORMAT a:/S" so ║
- ECHO ║ that a copy of the system is on it. Please do a FORMAT and re-execute ║
- ECHO ║ this batch file. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- GOTO END
- :Start
- %2
- %1CHKboot %1CHKBOOT.PRM /I
- IF ERRORLEVEL 64 GOTO BADchk
- COPY @@BOOT.SCT %1
- DEL @@*.SCT
- %1
- COPY SETUPSMF.CPY SCANMAX.BAT
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ The boot sector has been checked and the @@BOOT.SCT reload file has ║
- ECHO ║ been created. ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ Please insert the recovery floppy into drive %2 now. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- PAUSE
- COPY CHKFILEC.COM %2
- COPY CFCOMPC.COM %2
- COPY CHKFILE.COM %2
- COPY CFCOMP.COM %2
- COPY CHKBOOT.COM %2
- COPY LODBOOT.COM %2
- COPY @@BOOT.SCT %2
- COPY *.PRM %2
- COPY MIRDIR.COM %2
- COPY XALL.COM %2
- COPY SCAN*.BAT %2
- COPY FASTRUN.BAT %2
- COPY DSP*.BAT %2
- COPY RELODB.BAT %2
- DEL *.SCT
- : Create special marker file so other batch files know about this one
- TYPE %2PCITKR.MRK >%2PCITKR.MRK
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ Your RECOVERY diskette has been built. We are now checking the files ║
- ECHO ║ written to it. No files should be missing. All toolkit files should ║
- ECHO ║ match (This means all .COM and .BAT files). If any files are deleted ║
- ECHO ║ check that there is enough room on the diskette. If any errors show up,║
- ECHO ║ please get a clean copy of the toolkit. ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- CHKfileC %2*.* ))INTRB.LOG/I:))
- CFcompC ))INTRF.LOG ))INTRB.LOG/P/O
- DEL ))INTRB.LOG
- ECHO
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ We are now creating the CHECK diskette. Please insert it in drive %2 ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- PAUSE
- IF NOT EXIST %2COMMAND.COM GOTO NoSYS
- COPY CHKFILEC.COM %2
- COPY CFCOMPC.COM %2
- COPY CHKBOOT.COM %2
- COPY *.PRM %2
- COPY MIRDIR.COM %2
- COPY XALL.COM %2
- COPY SCANSYS.BAT %2
- COPY SCANDIR.BAT %2
- COPY SCANRFDR.BAT %2
- COPY SCANMAX.BAT %2
- COPY FASTRUN.BAT %2
- COPY DELFILES.BAT %2
- COPY INIT*.BAT %2
- COPY CH*.BAT %2
- COPY DSP*.BAT %2
- DEL *.PRM
- : Create special marker file so other batch files know about this one
- TYPE %2PCITKC.MRK >%2PCITKC.MRK
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ Your CHECK diskette has been built. We are now checking the files ║
- ECHO ║ written to it. No files should be missing. All toolkit files should ║
- ECHO ║ match (This means all .COM and .BAT files). If any files are deleted ║
- ECHO ║ check that there is enough room on the diskette. If any errors show up,║
- ECHO ║ please get a clean copy of the toolkit. ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- CHKfileC %2*.* ))INTCB.LOG/I:))
- CFcompC ))INTCF.LOG ))INTCB.LOG/P/O
- DEL ))INTCB.LOG
- ECHO ╔════════════════════╗
- ECHO ║ SETUP is complete! ║
- ECHO ╚════════════════════╝
- :End
-