On 25 May 2006 15:31:06 -0700, "ano1optimist" <(E-Mail Removed)> wrote:
>I'm trying to code a batch file that will delete any existing icons
>with a filename of *text*.lnk that reside on the local C drive. I can
>run the commands at a command prompt but when I execute them in a batch
>
>program, I get unexpected results. How can I accomplish this task?
for /f "Tokens=*" %%a in ('dir c:\*test*.lnk /b /s /a') do del /q /f "%%a"
AND DON'T MULTI-POST!
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com