I want to make a simple batch to backup the virus database of Kaba 6
@ echo off
color 7c
echo.
echo.
echo. Welcome to use Kaspersky 6 Virus Database Backup Program
echo.
rem.
rem.
rem.
echo =========================================
echo Close your eyes and rest, it will be done soon
echo =========================================
rd d:\avp6 /s /q
md d:\avp6
md d:\avp6\Bases
md d:\avp6\Data
md d:\avp6\Dskm
echo Backup directory established
cd %ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP6
%systemdrive%
xcopy bases d:\avp6\bases
xcopy data d:\avp6\Data
xcopy dskm d:\avp6\Dskm
cls & echo Kaspersky 6 Virus Database Backup Completed
But in actual use, I thought about the lack of universality. If there is a hidden partition on the hard drive or there is only one partition, there are still many problems. This is just a rough draft.
It's just stuck on the judgment of the hard drive. Elders, please give some pointers!
@ echo off
color 7c
echo.
echo.
echo. Welcome to use Kaspersky 6 Virus Database Backup Program
echo.
rem.
rem.
rem.
echo =========================================
echo Close your eyes and rest, it will be done soon
echo =========================================
rd d:\avp6 /s /q
md d:\avp6
md d:\avp6\Bases
md d:\avp6\Data
md d:\avp6\Dskm
echo Backup directory established
cd %ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP6
%systemdrive%
xcopy bases d:\avp6\bases
xcopy data d:\avp6\Data
xcopy dskm d:\avp6\Dskm
cls & echo Kaspersky 6 Virus Database Backup Completed
But in actual use, I thought about the lack of universality. If there is a hidden partition on the hard drive or there is only one partition, there are still many problems. This is just a rough draft.
It's just stuck on the judgment of the hard drive. Elders, please give some pointers!
