Re: dos - is this what the OP wanted?


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

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.
)



Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]