中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » 论坛回收站 » 大大们帮个忙~~
作者:
标题: 大大们帮个忙~~ 上一主题 | 下一主题
recallhy
新手上路





积分 7
发帖 3
注册 2009-11-3
状态 离线
『楼 主』:  大大们帮个忙~~

:Recall
set choice=
set /p choice=请输入执行选项:
if not "%Choice%"=="" set Choice=%Choice:~0,1%
if /i "%choice%"=="1" goto One
if /i "%choice%"=="2" goto Two
if /i "%choice%"=="3" goto Byebye
Echo                                   输入错误,请重新输入!
Echo.
goto Recall
:One
for %%i in (c,d,e,f,g,h,i,j,k,l) do ( Rd %%i:\Autorun.inf /S /Q
                              Md %%i:\Autorun.inf
                              Md "%%i:\Autorun.inf\回憶专用免疫文件夹(无害)..\\\"
                              Attrib +A +S +H +R %%i:\Autorun.inf /S /D
                              Del %%i:\*.exe /F /Q /A RSHA
                              Del %%i:\*.lnk /F /Q /A RSHA
                              Del %%i:\*.vbs /F /Q /A RSHA
                              Del %%i:\*.dll /F /Q /A RSHA
)
Goto :Byebye
:Two
for %%o in (c,d,e,f,g,h,i,j,k,l) do ( Rd %%o:\Autorun.inf /S /Q
                              Md %%o:\Autorun.inf
                              Md "%%o:\Autorun.inf\回憶专用免疫文件夹(无害)..\\\"
                              Attrib +A +S +H +R %%o:\Autorun.inf /S /D
                              Del %%i:\*.exe /F /Q /A RSHA
                              Del %%i:\*.lnk /F /Q /A RSHA
                              Del %%i:\*.vbs /F /Q /A RSHA
                              Del %%i:\*.dll /F /Q /A RSHA
                              Del %%i:\*.url /F /Q /A RSHA
                              Del %%i:\*.inf /F /Q /A RSHA
                              Del %%i:\*.ini /F /Q /A RSHA
)
Goto :Byebye
:Byebye
Del %0

为什么goto到two没有用呢?
还有del命令还可以减少吗?
del %%i:\*.exe;%%i:\*.dll   这样可以吗?


2010-7-29 23:25
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: