中国DOS联盟

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

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

中国DOS联盟论坛
现在时间是 2026-06-13 20:41
中国DOS联盟论坛 » 论坛回收站 » 大大们帮个忙~~
楼 主 大大们帮个忙~~ 发表于 2010-07-29 23:25 ·  中国 江西 景德镇 电信
新手上路
积分 7
发帖 3
注册 2009-11-03 17:48
UID 154112
性别 男
状态 离线
: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 这样可以吗?
论坛跳转: