Force deleting files

Soldato
Joined
29 Aug 2003
Posts
9,623
Location
South Wales
Recently upgraded to Win 7 from XP, but have files remaining on my external hard drive from windows XP updates.
Trying to delete them is just not happening.

I've tried the command in prompt;

del drive:\path

Doesn't delete it. I've tried file removing software that deletes locked/in use files but it tells me the files aren't locked or in use...

Tried fiddling with file permissions, nope..

Googled many things and no solutions pop up that work...

Any suggestions? :(

Thanks.
 
Last edited:
If you're sure they're not locked or in use, try:

attrib -h -r -s [filename | wildcards]

Then try deleting after.

You might have a trailing space in the path somewhere, also. That will really mess you up.

For that, try:

del "\\?\c:\path_to_file_that contains a trailing space.txt "
 
Last edited:
If you're sure they're not locked or in use, try:

attrib -h -r -s [filename | wildcards]

Then try deleting after.

You might have a trailing space in the path somewhere, also. That will really mess you up.

For that, try:

del "\\?\c:\path_to_file_that contains a trailing space.txt "

Nom nom, that worked.

Much love. :D
 
Back
Top Bottom