Board logo

标题: 删除电脑的全部*.swf文件,但是... [打印本页]

作者: SinLow     时间: 2009-9-16 11:23    标题: 删除电脑的全部*.swf文件,但是...

我想删除电脑的全部*.swf文件,但是要保留下里的windows本身里的*.swf文件!

保留如C:\windows\help\tours 里的*.swf文件,
还有C:\Program Files\Macromedia\Flash 8\en\First Run\Effects里的*.swf文件!

我要怎样写呢?

请高手帮忙!!!!
作者: SinLow     时间: 2009-9-17 02:59
各位我想是酱写对吗?

:: change directory to C:\Program Files\Microsoft Office\OFFICE11\1033
cd C:\Program Files\Microsoft Office\OFFICE11\1033
:: change all the flash files include in subdirectories that need ,to attributed read only
attrib +r *.swf /s /d

cd C:\WINDOWS\Help\Tours\mmTour
attrib +r *.swf /s /d

cd "C:\Program Files\Macromedia\Flash 8"
attrib +r *.swf /s

cd "C:\Documents and Settings\All Users\Application Data\Macromedia\Flash 8"
attrib +r *.swf /s /d

:: delete all flash file, except all the read only attrib flash file!
del /f /s /q %systemdrive%\*.swf


或者有另一种写法!!!
请高手指点!!




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5