Main Forum > General Computer Support

Windows is slow in deleting files

<< < (2/3) > >>

Shane:
Who ever MS hired to write that fucntion should be fired. What is taking so long is it is going through getting info on every single file, the size, the number and so on so that it can give you a pretty progress bar while it is doing it. Now try and go and delete a folder with 1 million subitems (I have odne it) and you will be sitting there for hours based on the speed of the drive and the number of files.

I dont care about the size, I dont care about the number I just want the damn files deleted! So since explorer cant do that in a easy way I normally fall back to good ol cmd.exe

Firs I cd to the folder I want gone, I then do a
del *.* /s
To remove all files and in all sub folders. then when that is done I call
rmdir command to remove all the folders and subfolders. rmdir wont remove a folder if it has any files it in, thuse I have to call the first command.

And guess what, they start working right off the bat because they are not sitting there counting things that I want gone in the first place lol

Shane

jraju:
Hi, Super Shane,
                              Those old cmd commands are quick to bypass anything to do the work allotted to command.

Willy2:
- The problem is that in normal circumstances it's quite fast but in some odd circumstances it's very slow. I even tried running Windows Repair in an attempt to fix it but was to no avail.

jraju:
Hi, Just try,
                                It works normal for you for other folders, but not in specific folders. Just right click that folder go to properties. In the customize tab that is shown, Please choose General in the top tab, If music or picture are there . You could click the drop down box and choose.
                                      Unusually, some programs make change in these properties, to either picture or music. So, it takes much time to read the file to delete. Try, I had one such problem and after changing this attribute, my explorer resumed normally.

Shane:
The times I have trouble using the cmd.exe commands is when the file paths are too long. When that happens I just go to the folders and start renaming them to 1 char each and I go to the subfolders and files and do it as well, this shortens the path length and then the commands can work.

The only time I have had them slow was when the file system on the drive needed repaired with chkdsk, the drive itself was slow or dieing, or the AV was scanning every single thing it was touching and slowing it down.

Shane

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version