@ echo off if not exist .\tools\mkisofs.exe goto t if not exist .\KLUpdater\Updater.exe goto v if not exist .\KLUpdater\ss_storage.ini goto v if not exist .\tools\7z.exe goto x if not exist kav_rescue_10.iso goto y if exist .\kavrescue del .\kavrescue\*.* /Q ECHO Kaspersky Rescue Disk Updater by Bharat Balegere echo AgniPulse.Com echo. echo. echo. echo. echo. Echo Extracting the contents of Kaspersky Rescue Disk Title Extracting Kaspersky Rescue Disk pause .\tools\7z x -o"kavrescue" -y -x"![BOOT]\*.img" "kav_rescue_10.iso" echo Kaspersky Files Extracted in %~dp0kavrescue echo. echo. pause cls if exist "C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP11\Bases\*.kdc" ( echo Looks like you have a Kaspersky Product installed. echo Copying updates from your Local Kaspersky folder copy "C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP11\Bases\*.kdc" .\kavrescue\rescue\bases\ /y > nul copy "C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP11\Bases\Stat\kdb.stt" .\kavrescue\rescue\bases\stat\kdb.stt > nul echo Copied Updates from your Local Kaspersky folder. echo Do you want to skip updating from the internet?y/n set /p choc= ) if "%choc%"=="y" goto iso Echo Next Step:Copying Virus Definition Files from your Rescue Disk to a Temporary Location pause cls Echo Copying Virus Definition Files from your Rescue Disk to a Temporary Location title Copying Virus Definition Files from your Rescue Disk to a Temporary Location if not exist .\kavrescue\rescue\bases goto u if not exist .\KLUpdater\Temp\temporaryFolder\bases\av\kdb\i386 md .\KLUpdater\Temp\temporaryFolder\bases\av\kdb\i386 echo n|copy .\kavrescue\rescue\bases\*.* .\KLUpdater\Temp\temporaryFolder\bases\av\kdb\i386\ /-y > nul echo Successfully Copied Definition Files to a Temporary Location echo. echo. Echo Next Step:Updating Virus Definition Files from Kaspersky Server pause cls Echo Updating Virus Definition Files from Kaspersky Server title Updating Virus Definition Files from Kaspersky Server pushd KLUpdater updater.exe -u -o ss_storage.ini -c popd echo. echo. Echo Next Step:Copying the Updated Virus Definition Files to your Rescue Disk pause cls Echo Copying the Updated Virus Definition Files to your Rescue Disk title Copying the Updated Virus Definition Files to your Rescue Disk copy .\KLUpdater\Updates\bases\av\kdb\i386\*.* .\kavrescue\rescue\bases\ > nul copy .\KLUpdater\Updates\bases\av\kdb\i386\kdb-i386-0607g.xml .\kavrescue\rescue\bases\kdb-0607g.xml > nul copy .\KLUpdater\Updates\bases\av\kdb\i386\kdbi386.stt .\kavrescue\rescue\bases\stat\kdb.stt > nul copy .\KLUpdater\Updates\index\u0607g.xml .\kavrescue\rescue\bases\stat\u0607g.xml > nul echo Successfully Copied Updated Definition Files to your Rescue Disk echo. echo. :iso Echo Next Step:Creating the Rescue Disk ISO Image pause cls title Creating the Rescue Disk ISO Image Echo Creating the Rescue Disk ISO Image if not exist .\kavrescue\boot\grub\i386-pc\eltorito.img goto bs .\tools\mkisofs -R -J -joliet-long -o kav_rescue_2010.iso -b boot/grub/i386-pc/eltorito.img -c boot\boot.cat -no-emul-boot -boot-info-table -V "Kaspersky Rescue Disk" -boot-load-size 4 kavrescue goto end :t echo File Missing %~dp0Tools\mkisofs.exe goto end :bs echo !! Bootsector Missing !! goto end :u echo !! The Kaspersky Rescue Disk is not a valid Disk. !! echo It does not contain the bases folder. echo Please download kav_rescue_10.iso from http://devbuilds.kaspersky-labs.com/devbuilds/RescueDisk/ and copy it to this folder. goto end :v echo Missing file(s) KLUpdater\Updater.exe, KLUpdater\ss_storage.ini goto end :x echo Missing file(s) Tools\7z.exe, Tools\Formats\iso.dll goto end :y echo !! %~dp0Kaspersky Rescue Disk Not Found !!. echo Missing File kav_rescue_10.iso echo Please download this file from http://devbuilds.kaspersky-labs.com/devbuilds/RescueDisk10/ goto end :end pause