Monday, February 11, 2013

What is the fastest way to delete folders and files on windows

Answer:

Fastest: 
The best I've found is a two line batch file with a first pass to delete files and outputs to nul to avoid the overhead of writing to screen for every singe file. A second pass then cleans up the remaining directory structure:
del /f/s/q foldername > nul
rmdir /s/q foldername
2nd: use rmdir /s/q foldername from the command line. del /f/s/q foldername is good too, but it leaves behind the directory structure.

3rd: shift+delete with Windows Explorer: it wastes loads of time checking the contents before starting deleting anything.

Slowest: Send to Recycle Bin, as you still need to delete them

Source:
http://stackoverflow.com/questions/186737/whats-the-fastest-way-to-delete-a-large-folder-in-windows/6208144#6208144

No comments:

Post a Comment