home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
CHECK15.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-06-04
|
961b
|
31 lines
@REM INSTALL.BAT - adds CHECK to your AUTOEXEC.BAT
@echo off
if X%1 == X goto NOARGS
goto ARGSOK
:NOARGS
echo You must specify path for the CHECK data files
echo and all your harddrives on the command line.
echo Please do not use a \ at the end of the path.
echo Example: INSTALL c:\chkdata c: d:
goto END
:ARGSOK
if not exist %1\AUTOEXEC.OLD goto FIRST
goto SECOND
:FIRST
mkdir %1
echo Copying C:\AUTOEXEC.BAT to %1\AUTOEXEC.OLD...
copy c:\AUTOEXEC.BAT %1\AUTOEXEC.OLD > nul
echo CHECK /W %1 /L /SD %2 %3 %4 %5 %6 %7 %8 %9 >> c:\autoexec.bat
echo Now please copy CHECK.EXE and REPAIR.EXE to some of the
echo directory in your path (%PATH%)
echo Then reboot your computer, change to:
cd
echo and execute again:
echo INSTALL %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:SECOND
echo Copying %1\AUTOEXEC.OLD to C:\AUTOEXEC.BAT...
copy %1\AUTOEXEC.OLD C:\AUTOEXEC.BAT > nul
echo CHECK /W %1 /D %2 %3 %4 %5 %6 %7 %8 %9 >> c:\autoexec.bat
:END