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 这样可以吗?
|
|