Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Files won't delete

18 Jan 2011   #1
sailornaruto39

Windows 7
 
 
Files won't delete

there are these files that i have been trying to delte but all i get it

is that the item could not be found.


My System SpecsSystem Spec
.
18 Jan 2011   #2
StalkeR

Windows 7 Ultimate SP1 / Windows 10 Pro x64
 
 

I don't see any files...?
My System SpecsSystem Spec
18 Jan 2011   #3
sailornaruto39

Windows 7
 
 

Quote   Quote: Originally Posted by StalkeR View Post
I don't see any files...?
what?
no when i go to a folder and try to delete certain files they won't
My System SpecsSystem Spec
.

18 Jan 2011   #4
brianzion

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
 
 

Quote:
FROM ASK LEO
Why can't I delete this file?
It's a fact that you can create files in Windows that are almost impossible to delete using normal methods. Typically it's the result of a hidden character in the filename - a character that for various reasons can't be seen and is difficult if not impossible to type. And yet if you don't specify the correct filename including that odd character you can't delete the file.

I can hear you asking "great, how did that character get there and more importantly how can I delete the file?"

The answer to the first part is speculation but I was recently pointed at a tool that will help with the second.

The biggest issue with invalid names is that not all programs filter out invalid characters from filenames before they pass them on to the system. For example, let's say you happened to accidentally hit the spacebar after the filename when you went to save a file. If the application you're using is not smart enough to strip trailing spaces then it may well create the file with a trailing space. You may think and see "FOO.DOC", but Windows sees "FOO.DOC ". A subtle, but important difference.

What's worse is when you attempt to rename the file or delete the file using a utility that then "does the right thing", it strips trailing spaces before it attempts to operate on the file. You type in or select "FOO.DOC " with a space and the utility takes it as "FOO.DOC" without a space, tries to delete it, and fails because that's not the name of the file!

There are actually several scenarios that can result in files that seem almost impossible to delete. Fortunately they are rare but they do happen.

What to do?

If your file system is FAT or FAT32 or most instances of NTFS you can use the old DOS "shortname". In the days before Windows filenames under MS-DOS could only be 11 characters long. For compatibility with old programs that relied on the 11 character limitation Windows creates a unique "shortname" for every long file name. For example, if your file is named "thisisalongfilename.isntit" a DIR /X in a command shell may show the shortname as "THISIS~1.ISN". It refers to the same file so you can delete using the shortname.

In some cases using the command shell or using shortnames isn't an option. That's a situation I found myself in some time ago. My disks are formatted with NTFS, and I've explicitly turned off "shortnames" for a little bit more speed. I had no way to delete the file I'd somehow created.

I was recently pointed at delinvfile DelinvFile - Utility for Deleting Invalid Files and Folders short for Delete Invalid File, from Assistance & Resources for Computing, Inc. It's a free Windows program that uses standard controls for drives, folders, and files to navigate to the folder and to select the file to be deleted. Push a button and it's gone.
My System SpecsSystem Spec
18 Jan 2011   #5
sailornaruto39

Windows 7
 
 

Quote   Quote: Originally Posted by brianzion View Post
Quote:
FROM ASK LEO
Why can't I delete this file?
It's a fact that you can create files in Windows that are almost impossible to delete using normal methods. Typically it's the result of a hidden character in the filename - a character that for various reasons can't be seen and is difficult if not impossible to type. And yet if you don't specify the correct filename including that odd character you can't delete the file.

I can hear you asking "great, how did that character get there and more importantly how can I delete the file?"

The answer to the first part is speculation but I was recently pointed at a tool that will help with the second.

The biggest issue with invalid names is that not all programs filter out invalid characters from filenames before they pass them on to the system. For example, let's say you happened to accidentally hit the spacebar after the filename when you went to save a file. If the application you're using is not smart enough to strip trailing spaces then it may well create the file with a trailing space. You may think and see "FOO.DOC", but Windows sees "FOO.DOC ". A subtle, but important difference.

What's worse is when you attempt to rename the file or delete the file using a utility that then "does the right thing", it strips trailing spaces before it attempts to operate on the file. You type in or select "FOO.DOC " with a space and the utility takes it as "FOO.DOC" without a space, tries to delete it, and fails because that's not the name of the file!

There are actually several scenarios that can result in files that seem almost impossible to delete. Fortunately they are rare but they do happen.

What to do?

If your file system is FAT or FAT32 or most instances of NTFS you can use the old DOS "shortname". In the days before Windows filenames under MS-DOS could only be 11 characters long. For compatibility with old programs that relied on the 11 character limitation Windows creates a unique "shortname" for every long file name. For example, if your file is named "thisisalongfilename.isntit" a DIR /X in a command shell may show the shortname as "THISIS~1.ISN". It refers to the same file so you can delete using the shortname.

In some cases using the command shell or using shortnames isn't an option. That's a situation I found myself in some time ago. My disks are formatted with NTFS, and I've explicitly turned off "shortnames" for a little bit more speed. I had no way to delete the file I'd somehow created.

I was recently pointed at delinvfile DelinvFile - Utility for Deleting Invalid Files and Folders short for Delete Invalid File, from Assistance & Resources for Computing, Inc. It's a free Windows program that uses standard controls for drives, folders, and files to navigate to the folder and to select the file to be deleted. Push a button and it's gone.
thank you so much!!!
My System SpecsSystem Spec
18 Jan 2011   #6
brianzion

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
 
 

no problem my friend did the program work for you and is it resolved?
My System SpecsSystem Spec
18 Jan 2011   #7
sailornaruto39

Windows 7
 
 

Quote   Quote: Originally Posted by brianzion View Post
no problem my friend did the program work for you and is it resolved?
still trying it and others
My System SpecsSystem Spec
Reply

 Files won't delete




Thread Tools




Similar help and support threads
Thread Forum
Cannot delete .eml files
Hi. I searched high and low, this forum and the web, and I can't find this one. Background - this is a new machine - about 1 month old. Windows 7. 3 Gig, etc. Email client is Windows Live Mail. I like it and Windows 7 a lot. The current problem is that I cannot delete saved .eml files. A...
Browsers & Mail
Delete OS Files but Keep Personal Files
Is there a way to delete all OS files on my old hard drive that I am using as additional storage but keep my personal files? Possibly a windows format? I can transfer the saved data to my main hard drive til I make this happen. Any Thoughts?
General Discussion
How to delete these files?
If I try to delete them an error message "Could not find this item" would show up. If I right click the files, it would say in their properties that the size is 0 bytes but in detailed view of the folder, they have sizes in KB. How do I delete them?
General Discussion
Delete XP Files, keep Boot Files
Hello all. Here's a screengrab of my partitions: http://img508.imageshack.us/img508/5406/partsi.png HDD is the XP partition that came with the computer. HDD7 is the partition on which I installed Windows 7. I only use Windows 7 now, so HDD is just wasting space. Basically, to avoid...
Installation & Setup
can't delete files
I found that there was already a thread about it,but Unlocker doesn't seem to work as it did then. So here it goes. When I download files with firefox it makes a temporary file in the place I download the file and then it deletes itself when the download its complete. But suddenly I'm left with 2...
General Discussion
can't delete two files
Hi guys, i found two files in my external HD and i can't delete them http://img837.imageshack.us/img837/7610/captureqj.png they just appeared there any ideas ?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App