search and delete

October 4, 2011 at 10:34:55
Specs: Windows XP
i want bat file e:\search WinRAR.exe and delete
search and delete winrar.exe

See More: search and delete

Report •

#1
October 5, 2011 at 07:12:27
Untested;

Comandline: for /f "tokens=*" %j in ('dir /b /s C:\ ^| find "WinRAR.exe"') do del /q %j
Batchfile: for /f "tokens=*" %%j in ('dir /b /s C:\ ^| find "WinRAR.exe"') do del /q %%j

Happy is ONE who says I am an OttoMAN.


Report •

#2
October 5, 2011 at 09:57:24
COMMAND NOT WORK
____________________________________________________________________
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>for /f "tokens=*" %j in ('dir /b /s C:\
^| find "WinRAR.exe"') do del /q %j

C:\Documents and Settings\Administrator>del /q C:\Program Files\WinRAR\WinRAR.ex
e
The system cannot find the path specified.

C:\Documents and Settings\Administrator>
___________________________________________________________________


Report •

#3
October 5, 2011 at 23:46:56
My bad, there is a space in the directory "Program Files".

Comandline: for /f "tokens=*" %j in ('dir /b /s C:\ ^| find "WinRAR.exe"') do del /q "%j"
Batchfile: for /f "tokens=*" %%j in ('dir /b /s C:\ ^| find "WinRAR.exe"') do del /q "%%j"

Happy is ONE who says I am an OttoMAN.


Report •

Related Solutions

#4
October 6, 2011 at 03:07:47
thanks command is working...

plz answeer this
http://www.computing.net/answers/pr...


Report •

#5
October 14, 2011 at 11:06:56
plz command search and delete all jpg files e drive

Report •

Ask Question