If you’ve been using Windows for as long as I have, you have probably run into your share of weird error messages. One that I got recently when trying to delete a file was:

  1. Dev C Files Can't Be Deleted Text
  2. Dev C++ Files Cant Be Deleted Photos
  3. Dev C Files Can't Be Deleted Video
  4. Dev C++ Files Cant Be Deleted Video

I've found that generally, the correct answer is don't use Dev-C because it's a steaming pile of bleep but this would also work. I tutor students that are required to use this compiler and this problem happens with great frequency, even when not using the C: directory as Jon indicated above. Feb 17, 2020. Jun 22, 2016  This document, titled « How To Delete Files that Cannot be Deleted », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM.

This was a strange problem because I didn’t know if the file actually existed or not. Was it already deleted or not? And why was Windows showing the file located in that folder if it really wasn’t there? Kind of made me wonder if my hard drive was running ok or not.

The first thing I did was to run a chkdsk expecting some hard drive errors. Oddly enough, it showed that the hard drive was perfectly fine. I also ran some additional diagnostics just to make sure the hard drive was functioning properly, which then made me realize it was some issue with Windows itself.

After playing around with various solutions, I was able to delete the “missing” files. Hopefully, one of the methods below will work for you.

Method 1 – F5 to Refresh

The first thing to try is to simply press F5 while viewing the folder in Explorer. F5 refreshes the view and if it was stuck for some reason, those files may just disappear on their own. If F5 doesn’t do anything, you should also try to restart the computer once and see if that removes the previously deleted files.

Another thing to look at is how much RAM you have available on your system. Some people have written that if they have numerous RAM intensive applications running at the same time, this problem has been seen to occur. Try closing a few programs, etc. and press F5 to refresh the folder.

Method 2 – Delete File/Folder Using Command Prompt

If you are unable to remove the file using Explorer, you might have better luck using the command prompt. Little snitch network monitor mac. Open a command prompt by going to Start and typing in CMD.

Dev C Files Can't Be Deleted Text

Now browse to the folder where the unusual files are located. You can go to the root of the drive by typing in cd /, followed by cd foldername to navigate into directories. Once you are there, type in dir to get a listing of all the files. To delete a file type del “filename” like below:

If you are trying to delete a folder instead of a file, the commands you will use is rmdir instead of del. Note that you have to put quotes around the file name if it has spaces in it. If this didn’t work, you can also try another method by deleting the file using DOS 8.3 file name instead of the normal file name. Instead of typing dir, type in dir /x and you’ll see this:

To delete the item, type in the 8.3 name, which is my case was THISIS~1.txt. Make sure you type the first part in all caps. The file extension can be in lowercase. Hopefully, that will get rid of your lost file.

Method 3 – Rename Using Command Prompt

Very similar to Method 2, but instead of deleting, you can try renaming. Some people can’t even delete the file or folder using the command prompt and this may be caused by having a really long name for the file/folder or having some strange characters in the name. Anyway, the command is simply:

As in Method 2, you want to do a dir /x to get the 8.3 filename and use that for the older folder name. Then use a short name for the new folder name. Once it is renamed, then you should be able to delete it using Explorer or the command prompt.

Method 4 – Create Temporary Folder

The other thing you can try that has had some success is to create a new folder, then drag the odd files/folders into the new folder and then to delete that newly created folder with the files in it. For whatever reason, moving the files out of their current folder seems to make them deletable again.

Method 5 – Use DelinvFile Tool

Files

If NOTHING else will delete the file, then you can use a free tool called DelinvFile that does just that: deletes invalid files in Windows 7/8/10.

Dev C++ Files Cant Be Deleted Photos

That’s about it! I really could not find any other way to get rid of those pesky invalid files! If you have a question or a different solution, post a comment! Enjoy!

Dev C Files Can't Be Deleted Video

I could make a password protected folder but it is of no use if someone deleted that folder. So, how can I create a folder with Windows that cannot be deleted? Is this possible?

Dev C++ Files Cant Be Deleted Video

  1. The folder may be undelete-able using a Windows command but how about someone using a Linux LiveCD? Of the top of my head I can think of at least one MUO article detailing how to use Ubuntu LiveCD to fix Windows problems. You can use the same CD to create Windows problems.

  2. just go through this link -http://www.how2know.in/how-to-lock-a-folder-without-a-software.html may be this is helpful.

  3. For me it is not possible.Before,I tried so hard how to create an undelete-able folder but there are always HUMAN who manage to find a way of deleting the undelete-able folder.

  4. i've got it now. tx awl. making it with cmd is good.

  5. You can modify the Folder Owner, make it nobody can delete it except you.
    Make it read only.

  6. try this link it has complete info with images...u can do it properly
    http://bzforum.in/Thread-How-to-create-a-folder-in-windows-which-cannot-be-deleted

  7. How did they dileate it without the password? You could try making it hidden or use a seperate locked HDD.

  8. idoo file encryption provides similar function to iobit folder locker, but the free version can only protect files, not folders.
    If you don't want to install/buy software, ha14 gave you the manual method.

  9. check this out
    http://bzforum.in/Thread-How-to-create-a-folder-in-windows-which-cannot-be-deleted
    it would help u out ;)

  10. You could always use IOBit Protected Folder (available in Rewards on this site). It can stop people from accessing it or you can allow them read access while denying write access (so they can't modify files and folders), etc.

  11. Secure Private Folders Making Inaccessible and Undeletable
    http://www.techtipsgeek.com/secure-private-folders-making-inaccessible-undeletable/104/

    1) cmd with administrative rights
    2) cd/
    3) change drive letter if you wish like D:
    4) type: md lpt1 (command will create a folder named lpt1 in the directory you specified earlier. you can name you folder anything from lpt1 to lpt9 )
    5) To delete that file: rd lpt1 /S

    M File Protector and M File Anti-Copy
    http://mini-products.net/