楼 主
一个批处理文件问题求教?
发表于 2007-01-10 21:54 · 中国 广东 深圳 南山区 电信
新手上路
★
积分 10
发帖 4
注册 2006-12-16 00:41
19年会员
UID 73655
性别 男
状态 离线
以下是借助别人的批处理重新写的,但有点问题,每次运行之后,OFFICE程序就不正常了,我不知道是程序问题,还是删除了重要文件,请各位大侠指点!
pushd %systemdrive%\
del /f /q /s *.old *.bak *.gid *.tmp*._mp*.log*.chk
popd
pushd %windir%\
del /f /q /s *.old *.bak *.gid *.tmp*._mp*.log*.chk
popd
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\prefetch\*.*
[ Last edited by cibe01 on 2007-2-2 at 09:38 AM ]
第 2 楼
发表于 2007-01-11 01:19 · 中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
积分 4,103
发帖 1,744
注册 2006-01-20 13:00
20年会员
UID 49241
性别 男
来自 甘肃.临泽
状态 离线
第 3 楼
发表于 2007-01-12 03:24 · 中国 广东 深圳 福田区 电信
新手上路
★
积分 10
发帖 4
注册 2006-12-16 00:41
19年会员
UID 73655
性别 男
状态 离线
第 4 楼
发表于 2007-01-24 05:51 · 中国 广东 深圳 福田区 电信
新手上路
★
积分 10
发帖 4
注册 2006-12-16 00:41
19年会员
UID 73655
性别 男
状态 离线
第 5 楼
发表于 2007-01-24 10:55 · 中国 湖南 衡阳 电信
中级用户
★★
积分 322
发帖 144
注册 2007-01-10 13:00
19年会员
UID 76062
性别 男
状态 离线
很明显
这个BAT主要是删了硬盘里的一些文件
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\prefetch\*.*
del /f /s /q %windir%\system32\wbem\Logs\*.log
del /f /s /q %windir%\system32\wbem\Logs\*.lo_
del /f /s /q %windir%\*log.txt
del /f /s /q %windir%\Debug\*.log
del /f /s /q %windir%\Debug\UserMode\*.log
del /f /s /q %windir%\Debug\UserMode\*.bak
del /f /s /q %windir%\SchedLgU.txt
del /f /s /q %windir%\security\logs\*.log
del /f /s /q %windir%\security\logs\*.old
del /f /s /q %windir%\system32\LogFiles\*.*\RECURSE
和
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q "%userprofile%\local settings\history\*.*"
我想主要原因是在
pushd %systemdrive%\
del /f /q /s *.old *.bak *.gid *.tmp*._mp*.log*.chk
popd
pushd %windir%\
del /f /q /s *.old *.bak *.gid *.tmp*._mp*.log*.chk
popd
有可能删掉了一些有用的BAK文件或是别的什么
是没什么问题的
第 6 楼
发表于 2007-02-02 21:50 · 中国 广东 深圳 福田区 电信
新手上路
★
积分 10
发帖 4
注册 2006-12-16 00:41
19年会员
UID 73655
性别 男
状态 离线
论坛跳转: