以下是引用winddeity在2004-1-21 3:45:00的发言:
中了欢乐时光,用专杀工具杀了,但没能删掉满硬盘都是的desktop.ini,folder.htt
想写个程序,但不知怎样遍历文件夹.求教!
3x!!!!!!!!!!!!!!!!!1
你可以使用 PKZIP for DOS 版来完成这个任务。以下是我编写的一个批处理文件,您可以试一试。
@ECHO OFF
CD\
IF EXIST C:\TMP^TMP.ZIP DEL C:\TMP^TMP.ZIP
PKZIP.EXE -a -exx -p -r -o -= -a+ -n+ -! -m C:\TMP^TMP.ZIP desktop.ini > NUL
PKZIP.EXE -a -exx -p -r -o -= -a+ -n+ -! -m C:\TMP^TMP.ZIP folder.htt > NUL
DEL C:\TMP^TMP.ZIP
注意:用此方法将把磁盘内所有的 DESKTOP.INI 及 FOLDER.HTT 文件删除,如果您要保留系统目录内的这两个文件(如 WINDOWS 目录),请先将系统目录内的这两个文件备份,待执行完此操作后再将这两个文件恢复回来即可。特别说明,在执行备份前一定将病毒清除干净,切记!切记!祝您好运!同时祝您春节愉快!
PKZIP的下载链接如下:
http://model.chinajewelry.net/dos/dosbbs/uploadImages/200311251526137234.rar
The following is a quote from winddeity on 2004-1-21 3:45:00:
I got the Happy Time virus. I used the special killing tool to kill it, but I couldn't delete desktop.ini and folder.htt that are all over the hard disk.
I want to write a program, but I don't know how to traverse folders. Please help!
3x!!!!!!!!!!!!!!!!!1
You can use the DOS version of PKZIP to complete this task. Here is a batch file I wrote, you can give it a try.
@ECHO OFF
CD\
IF EXIST C:\TMP^TMP.ZIP DEL C:\TMP^TMP.ZIP
PKZIP.EXE -a -exx -p -r -o -= -a+ -n+ -! -m C:\TMP^TMP.ZIP desktop.ini > NUL
PKZIP.EXE -a -exx -p -r -o -= -a+ -n+ -! -m C:\TMP^TMP.ZIP folder.htt > NUL
DEL C:\TMP^TMP.ZIP
Note: This method will delete all DESKTOP.INI and FOLDER.HTT files on the disk. If you want to keep these two files in the system directory (such as the WINDOWS directory), please back up these two files in the system directory first, and then restore these two files after performing this operation. It is specially noted that you must clear the virus completely before performing the backup, remember! Remember! Good luck to you! Also, I wish you a happy Spring Festival!
The download link for PKZIP is as follows:
http://model.chinajewelry.net/dos/dosbbs/uploadImages/200311251526137234.rar