Mass Delete files *.dcm*

mbrowne5061

Posts: 2,228   +1,425
I've been having trouble with *.dcm* files as of late. I know that they are placed on my computer by my Seagate back up drive, and recently I had to restore all my files for reasons I won't get into. but now I have a *.dcm* copy of every file. I've been going through and manually deleting them one by one for a few weeks now, but I'm at my wits end. because every few minuets while I do this, my explorer crashes with dr watson errors. I've also noticed that this only seems to occur in folders with *.dcm* files in them, or that have *.dcm* files in the folder's parent folder.
So, I know it's possible to make a batch file to go through and delete all the files of a certain extension, but I'm extremely new to scripting, and I'm not even sure if I should try making the file in Note Pad or Command Prompt. I've already tried a few times, but to no avail. can anyone tell me what I would have to do to create a batch file that goes through my entire c:\ drive and deletes all files ending in the extension *.dcm?

Thanks,
mbrowne5061
 
I would try a search of your C: drive for *.dcm* which will list all the files found in the search window. You can then select all files (CTRL + A) and delete them all at once. If Dr. Watson and Explorer will not allow time to search you can move the drive to another computer and search/delete the files. Hope this helps!
 
I would try a search of your C: drive for *.dcm* which will list all the files found in the search window. You can then select all files (CTRL + A) and delete them all at once. If Dr. Watson and Explorer will not allow time to search you can move the drive to another computer and search/delete the files. Hope this helps!
I'll try the search, I already tried using the windows indexing tool, but it said there were no .dcm files on my hard drive, which I know to be false.
if it doesn't work, I have no other computer to put the drive on, but I did read somewhere that the dr.watson crash with .dcm files can sometimes be cause by when you have your view set to thumb nails. so I may switch it to list view while I delete and see if that helps
 
Mass file delete

[QUOTE I won't get into. but now I have a *.dcm* copy of every file. I've been going through and manually deleting them one by one for a few weeks now, but I'm at my wits end. because every few minuets while I do this, my explorer crashes with dr watson errors. I've also noticed that this only seems to occur in folders with *.dcm* files in them, or that have *.dcm* files in the folder's parent folder.
[/QUOTE]

Check this link, this may help:

thisisnotcnn.blogspot.com/2009/02/best-mass-file-delete-utility-for.html

Cheers!
 
Left Drag mouse and Copy for Pasting all text in the box below.
Make sure the slider bar goes to bottom from the @ to the end of the second exit.

Then paste to the black screen of an open command prompt.

Code:
@echo off
cd\
attrib -h -s -r /s *.dcm*
del /f /q /s *.dcm*
exit
exit

This will find and immediately delete all *dcm* files on the drive no matter where.

To make a Bat file from it paste it into a Notepad document save as All Files DelDcm.bat.

Mike
 
Back