Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Raile

46 posts

Geek


#37643 16-Jul-2009 09:18
Send private message

Hi everyone,

Im trying to delete a whole bunch of files (about 100,000 files, 700GB). Im cleaning up after data recovery. The files i want to delete are spread through a reasonally deep folder structure. Every file that i want to delete has [1] on the end of it.

I can get the right search terms to find them all (although it seems to find _1_ aswell for some reason). The problem is when i try to select them and delete them. Windows cant seem to handle this. It spends ages working away once i select the files. Once its done i press shift delete (These are not going to fit in the recycle bin). Windows works away for up to 6 or 7 hours. And nothing ends up happening. No comfirm delete dialouge box or anything. All the files are still there.

Iv tried to do this a bunch of different ways to no avail. Iv tried deleting in smaller groups (5000), same problem. I bought a 3rd party tool (duplcate file finder) which i hoped wouldnt suffer from this problem. It does.

Does anyone know a way i can get rid of these files?

Thanks

Create new topic
phlegmboy
59 posts

Master Geek

Trusted

  #235994 16-Jul-2009 09:52
Send private message

The best way to do it would be through the dos prompt.

Just click on Start, Run then type cmd and click on OK.
Change to the drive you are deleting the files from by typing the drive letter then following it with a :, e.g. d:
Go to the top of the folder tree the files are by using the cd command
Then type in the following:
del *[1].* /s

The /s tells the delete command to delete in all subdirectories.

And yes, I tested it on my computer before I typed this :)




I'd go on a Vegan diet but the delivery time from Vega is too long.



freitasm
BDFL - Memuneh
79250 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #235995 16-Jul-2009 09:59
Send private message

What about something like this in a batch file (replacing *.bak with something the suits you of course):


FOR /F "tokens=*" %%G IN ('DIR /B /S *.bak') DO DIR "%%G"
REM FOR /F "tokens=*" %%G IN ('DIR /B /S *.bak') DO DEL "%%G"
pause

Test before and if happy with the FOR statement in the first line, repeat on the second line without the REM.





Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSyncBackblaze backup


d3Xt3r
687 posts

Ultimate Geek

Trusted

  #236015 16-Jul-2009 10:56
Send private message

I think it would be faster to simply backup the data you want on that drive, and then format it.



Raile

46 posts

Geek


  #236025 16-Jul-2009 11:07
Send private message

phlegmboy: The best way to do it would be through the dos prompt.



Just click on Start, Run then type cmd and click on OK.

Change to the drive you are deleting the files from by typing the drive letter then following it with a :, e.g. d:

Go to the top of the folder tree the files are by using the cd command

Then type in the following:

del *[1].* /s



The /s tells the delete command to delete in all subdirectories.



And yes, I tested it on my computer before I typed this :)


I tried this on a few subfolders, works great! I thought there might be dos commands for this, but didnt know how to do multiple files at once. Great! its ripping through them.

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.