|
上当
del /ah /s /q 删除了回收站的隐藏文件,丢入recycled的所有文件都不见了
我的供LZ参考:
我最早的del.bat:
xcopy d:\txb的文档\公司\*.* f:\mybackup\backup\gongsi\*.* /s
xcopy f:\mybackup\Favorites\*.* f:\mybackup\backup\Favorites\*.* /s
xcopy d:\GJP\mh\data\*.* f:\mybackup\backup\mh\*.* /s
xcopy d:\GJP\hg\data\*.* f:\mybackup\backup\hg\*.* /s
copy f:\001\bakup\radmm.rpb F:\mybackup\backup\radmm.rpb
start g:\Progra~1\WinRAR\rar.exe a /r /s /m1 f:\mybackup\work.rar f:\mybackup\backup
pause
rd.exe /s /q f:\mybackup\backup
在联盟泡了1星期的del.bat:
@echo off
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU\ /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /v MRUlist /d 0 /f
rd /s /q %windir%\temp & md %windir%\temp
rd /s /q "%systemdrive%\recycled"
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
del /f /s /q "%userprofile%\Local Settings\History\*.*"
del /f /s /q "%userprofile%\Recent\*.*"
xcopy d:\txb\公司\*.* f:\mybackup\backup\gongsi\*.* /s /c
xcopy f:\mybackup\Favorites\*.* f:\mybackup\backup\Favorites\*.* /s /c
xcopy d:\GJP\mh\data\*.* f:\mybackup\backup\mh\*.* /s /c
xcopy d:\GJP\hg\data\*.* f:\mybackup\backup\hg\*.* /s /c
xcopy C:\Progra~1\Outloo~1\*.* f:\mybackup\backup\tongxunlu\*.* /s /c
xcopy C:\Docume~1\txb\Applic~1\Radmin\*.* F:\mybackup\backup\radmm\*.* /s /c
start c:\Progra~1\WinRAR\rar.exe a /r /s /m1 f:\mybackup\bak\%date%.rar f:\mybackup\backup
echo Wscript.Sleep Wscript.Arguments(0) * 1000 >c:\delay.vbs
start /w c:\delay.vbs 15
rd /s /q f:\mybackup\backup
del c:\delay.vbs
作成关机脚本,备份清垃圾
[ 本帖最后由 qingfushuan 于 2007-2-3 05:14 PM 编辑 ] |
|