home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
vrac
/
diskse24.zip
/
DS2INST.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-09-02
|
4KB
|
133 lines
@echo off
echo off
echo.
rem Invocation syntax: DS2INST [drive DS files are on] [drive to install]
rem e.g. DS2INST a d (do not include colons) if DS2INST is invoked
rem without any parameters, it will assume from a & to c
set d1=%1
set d2=%2
if t%d1%==t set d1=a
if t%d2%==t set d2=c
echo.
echo Use this installation file only if DISKSECURE II is on a floppy disk
echo (A/B) and you are installing to a hard disk.
echo Otherwise install manually (see documentation)
echo.
echo DISKSECURE II will be installed from drive %d1% to drive %d2%
echo press control-C to exit if incorrect, (enter) to continue.
pause
echo.
%d2%:
%d1%:chk512
if not errorlevel 1 goto secok
echo.
echo Invalid disk sector size (over 512 bytes) - cannot install DiskSecure II
goto endit
:secok
%d1%:dos32.com
if not errorlevel 1 goto lowdos
echo.
%d1%:chkint13.com
if errorlevel 1 goto intok
echo.
echo Interrupt 13 vector report invalid. If QEMM386 "stealth" not in effect,
echo you may have a virus already. In any event, DiskSec II cannot initialize.
echo If no virus is found, you may have to boot from a "bare floppy" to install.
goto endit
:intok
echo.
echo Interrupt 13 validated.
echo.
cd \
md \ds2
cd \ds2
%d1%:
echo.
echo Copying DS2 files to %d2%:\ds2
copy *.* %d2%: >nul
%d2%:
echo.
echo Do I have permission to add DISKSECURE II verification to your
echo AUTOEXEC.BAT file ? (y/n)
ask
if errorlevel 89 if not errorlevel 90 goto addbat
goto next
:addbat
if not exist c:\autoexec.bat goto newbat
echo.
echo The original AUTOEXEC.BAT is being saved as %d2%:\ds2\autoexec.ds
copy c:\autoexec.bat autoexec.ds >nul
copy ds2chk.exe c:\ >nul
copy ds2.b+autoexec.ds c:\autoexec.bat >nul
goto dsconfig
:newbat
copy ds2.b c:\autoexec.bat >nul
goto dsconfig
:next
echo.
echo It is suggested that the command lines in file DS.B be added to your
echo startup procedure to verify proper operation of DISKSECURE.
:dsconfig
echo.
echo This PC is currently running DOS 3.2 or above. If this is correct for
echo normal operation then do I have permission to add DISKSECURE II
echo DS2MOVE.SYS to your CONFIG.SYS file ?
echo This will make maximum available memory to DOS. (y/n)
ask
if errorlevel 89 if not errorlevel 90 goto addcon
goto next2
:addcon
copy ds2move.sys c:\ >nul
copy c:\config.sys config.ds >nul
echo.
qemmst.com
if not errorlevel 7 goto cok2
echo.
echo If QEMM DOSDATA.SYS and DOS_UP.SYS are present in CONFIG.SYS
echo DS2MOVE.SYS should be installed only AFTER these drivers.
echo DS2INST will place DS2MOVE.SYS LAST in CONFIG.SYS. To install
echo first, you will have to install the device driver manually.
echo.
echo Do you wish to continue (y) or skip the update of CONFIG.SYS (n) ?
ask
if errorlevel 89 if not errorlevel 90 goto cok1
goto next2
:cok1
if not exist c:\config.sys goto newsys
echo The original CONFIG.SYS is being saved as %d2%:\ds2\config.ds
copy config.ds+cr.lf+ds2.c c:\config.sys >nul
goto dsin
:cok2
echo.
echo The original CONFIG.SYS is being saved as %d2%:\ds2\config.ds
copy ds2.c+config.ds c:\config.sys >nul
goto dsin
:newsys
copy ds2.c c:\config.sys >nul
goto dsin
:next2
echo.
echo It is suggested that the command line in file DS2.C be added to your
echo CONFIG.SYS file for minimal memory use.
:dsin
disksec2
goto endit
:lowdos
echo.
echo The DiskSecure files have been copied to your hard disk however you
echo are not currently running DOS 3.2 or above. While the DiskSecure
echo protection does not require this, the instalation procedure does
echo to be able to properly set up the automatic recovery feature.
echo.
echo Consequently, you will have to boot the machine with DOS 3.2 or above
echo and run DiskSec2.exe manually or rerun this .BAT file to fully install
echo the product.
:endit
del *.com
del ds2inst.bat
del ds2.c
del ds2.b
del cr.lf
set d1=
set d2=
cd \