home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1990
/
03
/
setuph.bat
< prev
next >
Wrap
DOS Batch File
|
1989-11-28
|
6KB
|
132 lines
ECHO OFF
ECHO ╔════════════════════════════════════════════════════════════╗
ECHO ║ SETUPH - Toolkit install for nornal hard disk based systems║
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
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ This batch file is about to put PCDATA Toolkit files onto the ║
ECHO ║ RECOVERY diskette. Use only if you boot from first physical hard disk. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ You should be logged onto the drive from which you normally boot. ║
ECHO ║ The current directory must be the one containing the toolkit files. ║
ECHO ║ The RECOVERY diskette should be in drive %1. If this is not the case, ║
ECHO ║ 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
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Syntax is: SETUPH a: ║
ECHO ║ where a: is the drive containing the RECOVERY diskette. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ SETupH will check the first physical hard disk partition table and ║
ECHO ║ the boot sector on the current disk. The reload files plus all needed ║
ECHO ║ toolkit files will be copied to the RECOVERY diskette. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ Next SETupH will copy all needed files for 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 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
CHKboot/I
IF ERRORLEVEL 64 GOTO BADchk
COPY CHKFILEC.COM %1
COPY CFCOMPC.COM %1
COPY CHKFILE.COM %1
COPY CFCOMP.COM %1
COPY CHKBOOT.COM %1
COPY LODBOOT.COM %1
COPY *.SCT %1
COPY *.PRM %1
COPY MIRDIR.COM %1
COPY XALL.COM %1
COPY SCAN*.BAT %1
COPY FASTRUN.BAT %1
COPY DSP*.BAT %1
COPY RELODB.BAT %1
DEL @@BOOT.SCT
DEL @@PARTIT.SCT
: Create special marker file so other batch files know about this one
TYPE %1PCITKR.MRK >%1PCITKR.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 %1*.* ))INTRB.LOG/I:))
CFcompC ))INTR.LOG ))INTRB.LOG/P/O
DEL ))INTRB.LOG
ECHO
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ We are now creating the CHECK diskette. Please insert it in drive %1 ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
PAUSE
IF NOT EXIST %1COMMAND.COM GOTO NoSYS
COPY CHKFILEC.COM %1
COPY CFCOMPC.COM %1
COPY CHKBOOT.COM %1
COPY *.PRM %1
COPY MIRDIR.COM %1
COPY XALL.COM %1
COPY SCANSYS.BAT %1
COPY SCANDIR.BAT %1
COPY SCANRFDR.BAT %1
COPY SCANMAX.BAT %1
COPY FASTRUN.BAT %1
COPY DELFILES.BAT %1
COPY INIT*.BAT %1
COPY CH*.BAT %1
COPY DSP*.BAT %1
DEL CHKBOOT.PRM
: Create special marker file so other batch files know about this one
TYPE %1PCITKC.MRK >%1PCITKC.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 %1*.* ))INTCB.LOG/I:))
CFcompC ))INTC.LOG ))INTCB.LOG/P/O
DEL ))INTCB.LOG
ECHO ╔════════════════════╗
ECHO ║ SETUP is complete! ║
ECHO ╚════════════════════╝
:End