Posted by Valerie on May 23, 2011 at 06:01:10:
In Reply to: dos posted by kotresh on May 20, 2011 at 14:29:21:
@echo off
cls
setlocal
set yesno=0
For /f %%1 in ('dir /a-d /b') do (
echo %%1
if "%%1" equ "autorun.inf" (
del /f %%1
set /a yesno+=1
goto endit)
)
:endit
if %yesno% gtr 0 (echo autorun.inf file deleted.
) else (
echo autorun.inf file not found.
)