复杂的代码如下,简化的在帖子最后 高手直接拉到最后帮我看下哪里出错。。。。 困惑中- taskkill /im explorer.exe /f
- echo Y|cacls C:\AutoRun.inf /g everyone:f
- echo Y|cacls D:\AutoRun.inf /g everyone:f
- echo Y|cacls E:\AutoRun.inf /g everyone:f
- echo Y|cacls F:\AutoRun.inf /g everyone:f
- echo Y|cacls G:\AutoRun.inf /g everyone:f
- echo Y|cacls H:\AutoRun.inf /g everyone:f
- echo Y|cacls I:\AutoRun.inf /g everyone:f
- DEL /F /A /Q C:\AutoRun.inf
- RD /S /Q C:\AutoRun.inf
- DEL /F /A /Q e:\AutoRun.inf
- RD /S /Q e:\AutoRun.inf
- DEL /F /A /Q f:\AutoRun.inf
- RD /S /Q f:\AutoRun.inf
- DEL /F /A /Q g:\AutoRun.inf
- RD /S /Q g:\AutoRun.inf
- DEL /F /A /Q h:\AutoRun.inf
- RD /S /Q h:\AutoRun.inf
- DEL /F /A /Q i:\AutoRun.inf
- RD /S /Q i:\AutoRun.inf
- mkdir C:\AutoRun.inf
- mkdir C:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s C:\AutoRun.inf
- echo Y|cacls C:\AutoRun.inf /d everyone
- mkdir D:\AutoRun.inf
- mkdir D:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s D:\AutoRun.inf
- echo Y|cacls D:\AutoRun.inf /d everyone
- mkdir E:\AutoRun.inf
- mkdir E:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s E:\AutoRun.inf
- echo Y|cacls E:\AutoRun.inf /d everyone
- mkdir F:\AutoRun.inf
- mkdir F:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s F:\AutoRun.inf
- echo Y|cacls F:\AutoRun.inf /d everyone
- mkdir G:\AutoRun.inf
- mkdir G:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s G:\AutoRun.inf
- echo Y|cacls G:\AutoRun.inf /d everyone
- mkdir H:\AutoRun.inf
- mkdir H:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s H:\AutoRun.inf
- echo Y|cacls H:\AutoRun.inf /d everyone
- mkdir I:\AutoRun.inf
- mkdir I:\AutoRun.inf\"病毒免疫勿删除../"
- attrib +h +r +s I:\AutoRun.inf
- echo Y|cacls I:\AutoRun.inf /d everyone
- echo
- echo Y|cacls C:\DeskTop.ini /g everyone:f
- echo Y|cacls D:\DeskTop.ini /g everyone:f
- echo Y|cacls E:\DeskTop.ini /g everyone:f
- echo Y|cacls F:\DeskTop.ini /g everyone:f
- echo Y|cacls G:\DeskTop.ini /g everyone:f
- echo Y|cacls H:\DeskTop.ini /g everyone:f
- echo Y|cacls I:\DeskTop.ini /g everyone:f
- DEL /F /A /Q C:\DeskTop.ini
- RD /S /Q C:\DeskTop.ini
- DEL /F /A /Q e:\DeskTop.ini
- RD /S /Q e:\DeskTop.ini
- DEL /F /A /Q f:\DeskTop.ini
- RD /S /Q f:\DeskTop.ini
- DEL /F /A /Q g:\DeskTop.ini
- RD /S /Q g:\DeskTop.ini
- DEL /F /A /Q h:\DeskTop.ini
- RD /S /Q h:\DeskTop.ini
- DEL /F /A /Q i:\DeskTop.ini
- RD /S /Q i:\DeskTop.ini
- mkdir C:\DeskTop.ini
- mkdir C:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s C:\DeskTop.ini
- echo Y|cacls C:\DeskTop.ini /d everyone
- mkdir D:\DeskTop.ini
- mkdir D:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s D:\DeskTop.ini
- echo Y|cacls D:\DeskTop.ini /d everyone
- mkdir E:\DeskTop.ini
- mkdir E:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s E:\DeskTop.ini
- echo Y|cacls E:\DeskTop.ini /d everyone
- mkdir F:\DeskTop.ini
- mkdir F:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s F:\DeskTop.ini
- echo Y|cacls F:\DeskTop.ini /d everyone
- mkdir G:\DeskTop.ini
- mkdir G:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s G:\DeskTop.ini
- echo Y|cacls G:\DeskTop.ini /d everyone
- mkdir H:\DeskTop.ini
- mkdir H:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s H:\DeskTop.ini
- echo Y|cacls H:\DeskTop.ini /d everyone
- mkdir I:\DeskTop.ini
- mkdir I:\DeskTop.ini\"病毒免疫勿删除../"
- attrib +h +r +s I:\DeskTop.ini
- echo Y|cacls I:\DeskTop.ini /d everyone
复制代码 --------------------简话后不能执行,高手看看哪里出错了- For %%a In (C D E F G H I J K L M N O P Q R S T U V W X Y Z) Do @(
- If Exist %%a: (
- echo Y|cacls %%a:\AutoRun.inf /g everyone:f
- rd %%a:\autorun.inf /s /q
- del %%a:\autorun.inf /f /q
- mkdir %%a:\autorun.inf
- mkdir %%a:\autorun.inf\"病毒免疫勿删除../"
- attrib +h +r +s %%a:\autorun.inf
- echo Y|cacls %%a:\AutoRun.inf /d everyone
复制代码 执行后没有效果。。
[ 本帖最后由 lzfddd123 于 2009-5-14 17:08 编辑 ] |