在论坛潜水2天了.学会了一个命令set /p....现在有个问题..请教下..
@echo off
: start
set /p disk=请输入要删除的盘符
if "%disk%"=="" goto error
for %%i in (autorun.inf host.exe copy.exe) do attrib %disk%\%%i
-r -s -h >nul 2>nul
for %%e in (autorun.inf host.exe copy.exe) do del %disk%\%%e/s/f
shift >nul 2>nul
if "%1"=="" goto ko
goto start
: error
ECHO Error:请正确输入盘符
goto end
: ko
echo KO..按任意键退出~~
pause >nul
: END
在这一行
for %%e in (autorun.inf host.exe copy.exe) do del %disk%\%%e/s/f
shift >nul 2>nul