home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 April
/
Chip_2001-04_cd1.bin
/
sharewar
/
avdisk
/
AVDISK.BAT
< prev
next >
Wrap
DOS Batch File
|
2000-06-23
|
1KB
|
57 lines
@Echo Off
Cls
Echo AVDisk 7
Echo ========
Echo.
If Exist Install.Exe Goto InstallError
If Not Exist PKZip.Exe Goto PKError
If Not Exist PKUnZip.Exe Goto PKError
Goto TempCheck
:InstallError
Echo Error - AVDisk is not installed yet!
Echo.
Echo Before attempting to use AVDisk please follow the installation
Echo instructions contained in AVDisk.Txt
Echo.
Echo If you have manually installed AVDisk, you can bypass this error
Echo message by removing the Install.Exe program file from this folder.
Pause
Goto End
:PKError
Echo Error - Can't find the required PKWare software
Echo.
Echo The PKZip and PKUnZip utilities are used by AVDisk to compress and store
Echo anti-virus programs on floppy disks. Please visit:
Echo.
Echo http://www.pkware.com
Echo.
Echo Download PKZip for DOS version 2.50 or higher, save the PKZip
Echo software in your AVDisk folder and then run it once. It will
Echo automatically decompress itself and you can then run AVDisk.
Echo.
Echo Please see the AVDisk.Txt file for more information.
Pause
Goto End
:TempCheck
If Not %Temp%*==* Goto Continue
Echo Error - Can't find Temp directory
Echo Please set Temp environment variable.
Echo Example: Set Temp=C:\Windows\Temp
Pause
Goto End
:Continue
MD %Temp%\AVDisk >Nul
Copy PKZip.Exe %Temp%\AVDisk /Y >Nul
PKUnZip -e -o -sAVDisk7 Files.Zip *.Bat %Temp%\AVDisk >Nul
Command /E:1024 /C %Temp%\AVDisk\AVDisk1.Bat %1
Deltree /Y %Temp%\AVDisk >Nul
CD \
:End