|
freeskych
初级用户
 
积分 22
发帖 9
注册 2006-11-8
状态 离线
|
『楼 主』:
高手们,指点一个判断硬盘分区情况的批处理
使用 LLM 解释/回答一下
我想做一个简单的批处理,用于备份 卡6的库毒库
@ echo off
color 7c
echo.
echo.
echo. 欢迎使用卡巴斯基6病毒库备份程序
echo.
rem.
rem.
rem.
echo =========================================
echo 闭闭眼睛休息下马上就好了
echo =========================================
rd d:\avp6 /s /q
md d:\avp6
md d:\avp6\Bases
md d:\avp6\Data
md d:\avp6\Dskm
echo 备份目录建立完成
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 卡巴6库毒库备份完毕
但是实际用起来,想到缺乏通用性,如果硬盘有隐藏分区或者是只有一个分区呢,另外还有不少问题,这只是一个粗坯子,
只要卡在对硬盘的判断上了,老大们指点一下啊!
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!
|
|
2006-11-8 12:25 |
|
|
freeskych
初级用户
 
积分 22
发帖 9
注册 2006-11-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
另外想用卡6 的命令行参数手动导入设置关闭卡6自保护,然后导入病毒库更新目录的注册表,然后再导入优化的设置,打开自保护
不过对照卡6命令行的说明文档试了半天,导出行,导入要进入卡6程序密码设置!
不知有没有高招!
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!
|
|
2006-11-8 12:30 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
没听懂楼主说的是什么意思。。。。
I didn't understand what the original poster meant...
|
|
2006-11-8 13:53 |
|
|
freeskych
初级用户
 
积分 22
发帖 9
注册 2006-11-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我想判断电脑硬盘的分区情况,并以此处理备份目录的位置!
I want to determine the partition situation of the computer hard disk and use this to handle the location of the backup directory!
|
|
2006-11-8 21:05 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
卡巴斯基6病毒库备份程序
xcopy /d/y "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP6
" d:\avp6\Bases
更新卡巴斯基6病毒库
"%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP6\avp.com" UPDATE d:\avp6\Bases
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
|

我的网络U盘 我的网络第2个U盘
论坛软件下载链接
灵雨飘零论坛
论坛新手必读,所有人的基本行为准则
刷QQ空间人气、留言的小软件 |
|
2006-11-8 22:29 |
|
|
voiL
中级用户
  
积分 384
发帖 189
注册 2005-10-19
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
楼主的意思应该是想利用批处理自动判断硬盘到底分了多少个区,并就得到的结果来进行较灵活的备份吧?
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?
|
|
2006-11-8 23:10 |
|
|
freeskych
初级用户
 
积分 22
发帖 9
注册 2006-11-8
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
对!
不得不爱 版主,AVP6备份三个文件夹就可以了,不用备份全部吧
Bases
Data
Dskm
你的更新目录也没有AVP.COM程序
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
|
|
2006-11-9 05:54 |
|
|
freeskych
初级用户
 
积分 22
发帖 9
注册 2006-11-8
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
在安装目录找到AVP.COM。但它的UPDATE 参数AVP.COM UPDATE D:\AVP6\BASES,也不能执行啊!
Find AVP.COM in the installation directory. But its UPDATE parameter AVP.COM UPDATE D:\AVP6\BASES can't be executed either!
|
|
2006-11-9 06:15 |
|
|
freeskych
初级用户
 
积分 22
发帖 9
注册 2006-11-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
帮助文件中对UPDATE可没有说明,你用的什么版本的卡6,通过这种方法更新过吗?!
The help file doesn't explain about UPDATE. Which version of Card 6 are you using? Have you updated it through this method?!
|
|
2006-11-9 06:16 |
|
|
honhaizh
初级用户
 
积分 35
发帖 18
注册 2006-4-26
状态 离线
|
|
2006-11-16 20:33 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-11-16 21:46 |
|
|
hxuan999
中级用户
   DOS之日
积分 337
发帖 161
注册 2006-11-4
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
我也关注一上怎样才能判断硬盘分区的情况呀.
I also care about how to judge the situation of hard disk partitions.
|

for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul |
|
2006-11-23 02:22 |
|