Re: dos


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

Posted by SpywareDr on May 22, 2011 at 09:10:46:

In Reply to: Re: dos posted by Valerie on May 21, 2011 at 05:51:30:

Valerie: For /f %%1 in ('dir /a-d /b autorun.inf') do if exist %%1 del %%1

--

??? That's not going to work.

--- Begin Screenshot ---

C:\EasyDOS>dir
Volume in drive C is HD00_Vol00
Volume Serial Number is A465-2B52

Directory of C:\EasyDOS

05/22/2011 09:07 AM .
05/22/2011 09:07 AM ..
05/22/2011 09:07 AM AutoRun.inf
05/22/2011 09:05 AM 66 xx.bat
1 File(s) 66 bytes
3 Dir(s) 149,438,328,832 bytes free

C:\EasyDOS>type xx.bat
For /f %%1 in ('dir /a-d /b autorun.inf') do if exist %%1 del %%1
C:\EasyDOS>xx

C:\EasyDOS>For /F %1 in ('dir /a-d /b autorun.inf') do if exist %1 del %1
File Not Found

C:\EasyDOS>

--- End Screenshot ---

(Note the "File Not Found" error).




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 ]