中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-15 12:20
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS批处理 & 脚本技术(批处理室) » Experts, please give a batch script to judge the hard disk partition situation
Printable Version  2,873 / 11
Floor1 freeskych Posted 2006-11-08 12:25
初级用户 Posts 9 Credits 22
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!
Floor2 freeskych Posted 2006-11-08 12:30
初级用户 Posts 9 Credits 22
Additionally, I want to use the command-line parameters of Kaspersky 6 to manually import settings to disable Kaspersky 6 self-protection, then import the registry of the virus database update directory, and then import optimized settings and enable self-protection. However, after trying for a long time according to the command-line instructions of Kaspersky 6, when exporting, when importing, I need to enter the Kaspersky 6 program password setting! I wonder if there are any good tricks!
Floor3 lxmxn Posted 2006-11-08 13:53
版主 Posts 4,938 Credits 11,386

  I didn't understand what the original poster meant...
Floor4 freeskych Posted 2006-11-08 21:05
初级用户 Posts 9 Credits 22
I want to determine the partition situation of the computer hard disk and use this to handle the location of the backup directory!
Floor5 不得不爱 Posted 2006-11-08 22:29
超级版主 Posts 2,044 Credits 5,310 From 四川南充
Kaspersky 6 Virus Database Backup Program
xcopy /d/y "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP6" d:\avp6\Bases
Update Kaspersky 6 Virus Database
"%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP6\avp.com" UPDATE d:\avp6\Bases
Floor6 voiL Posted 2006-11-08 23:10
中级用户 Posts 189 Credits 384
The meaning of the poster should be that he wants to use batch processing to automatically judge how many partitions the hard disk has been divided into, and then carry out more flexible backups according to the obtained results, right?
Floor7 freeskych Posted 2006-11-09 05:54
初级用户 Posts 9 Credits 22
Yes!
Moderator of the "Can't Help Loving" version, for AVP6, you only need to back up three folders, no need to back up all.
Bases
Data
Dskm

Your update directory also doesn't have the AVP.COM program
Floor8 freeskych Posted 2006-11-09 06:15
初级用户 Posts 9 Credits 22
Find AVP.COM in the installation directory. But its UPDATE parameter AVP.COM UPDATE D:\AVP6\BASES can't be executed either!
Floor9 freeskych Posted 2006-11-09 06:16
初级用户 Posts 9 Credits 22
The help file doesn't explain about UPDATE. Which version of Card 6 are you using? Have you updated it through this method?!
Floor10 honhaizh Posted 2006-11-16 20:33
初级用户 Posts 18 Credits 35
Floor11 不得不爱 Posted 2006-11-16 21:46
超级版主 Posts 2,044 Credits 5,310 From 四川南充
AVP.COM UPDATE D:\AVP6\BASES, to execute normally, it must be the latest database of Card 6
Floor12 hxuan999 Posted 2006-11-23 02:22
中级用户 Posts 161 Credits 337
I also care about how to judge the situation of hard disk partitions.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023