A batch file to delete a picture in my PC

May 13, 2011 at 04:48:59
Specs: Windows 7
I want to delete all pictures of the extension *.wmf (for example) on my pc using a BATCH file... I'm looking for a batch to look in my whole computer for this sort of files and delete them without prompting me, because there will many prompts for that.

I hope that you instruct me where to put the code you provide.

thanks in advance


See More: A batch file to delete a picture in my PC

Report •

#1
May 13, 2011 at 04:55:04
Code is

DEL /f /q *.wmf


let me know it if works

Tandem Support

Tandem Web Design


Report •

#2
May 13, 2011 at 05:02:05
thx Daniel, but it only deletes the .wmf files that exists in the same directory... I want it to delete all .wmf files on my pc

Report •

#3
May 13, 2011 at 05:04:14
DEL /f /q C:\*.wmf

try this

Tandem Support

Tandem Web Design


Report •

Related Solutions

#4
May 13, 2011 at 05:09:29
thx again Daniel... still deletes files only inside the C:\ but doesn't loop through all folders in C:\
for example, "C:\program files\star.wmf" is not deleted while "C:\square.wmf" is deleted

Report •

#5
May 13, 2011 at 05:16:46
DEL /f /q /s C:\*.wmf

if that dont work try DEL /f /q /s *.wmf
Sorry missed that one out :D
/s deletes from all sub folders as well
Tandem Support

Tandem Web Design


Report •

#6
May 13, 2011 at 05:21:03
thx... it worked

Report •

#7
May 13, 2011 at 05:21:47
cool, its been about 2 years since i have done any batch files.

Tandem Support

Tandem Web Design


Report •

Ask Question