I am unable to delete files from my computer.Whenever I try to delete it, the following message appears : "THE FILE NAME YOU SPECIFIED IS NOT VALID OR TOO LONG". Is there any other method to delete that file other than booting into Linux Live Disc and mounting the Windows drive and deleting it through Linux?
13792
My wife has several files and folders that somehow ended up having filenames that have caused them to be undeleteable (can't be deleted) by normal means or via the command line. I believe the filenames are too long due to the depth of the folder structures. Does anyone know of a good utility for cleaning up files like this?
77475
Possible Duplicate:          Somehow I ended up with a file named "-r".  How do I remove it?  rm -r doesn't work.  I tried 'rm -i `ls -a`' to step through the file names, but it didn't prompt me to delete this one.  Edit A very hacky approach was to use python's os.unlink function.  That worked, but I'm curious to hear other ways.
72845
I have a directory with 1000+ files. In a text file, I have about 50 filenames, one per line. I'd like to delete all the files in the directory whose filenames don't correspond with an entry on the list. What's the best way to do this? I started a shell script, but couldn't determine the proper command to determine in the filename is on the list. Thanks.
48449
I wrote a program that uses POSIX memory-mapping function (mmap)  The program takes a file (a.dat) and memory-maps it for reading/writing.  Due to errors in the program, every time I run the program a file with some weird names (e.g., ?d?P?^z??d?P?^z?) is created. The error is resolved but I am not able to delete the files.  I am not able to delete it either using command line or by select/deleting from window manager.  So how should I delete it? I'm using Ubuntu 11.04.
104658
Some time ago I had a user called "xy" on my system. I have deleted the user but in the /Users directory there are folders called "xy" with a Desktop, Library etc. in it.   Why are they not deleted and can I delete them manually?
10476
I have a song that Windows can't play because there is a question mark in the name of the file.  "Where Have All the Cowboys Gone?.ogg" // as an example   So I try to rename it and Windows complains whether I try it in Explorer or from command prompt.  Error I get when trying to copy, rename, or move is:     The Filename, directory name, or volume label syntax is incorrect   Is there a Windows way to force a rename in this case?   Update  I'll keep an eye on this question, but after 13 answers and many attempts (aside form 3rd party solutions) it seems that Windows can't do this (or at least my windows can't, no short names). So I'm accepting the answer which was my original solution anyway of using Linux. It would be nice to see Windows handle this somehow, so don't stop just because I've accepted this answer, the question still stands!
98998
I need to do create a file with a filename such as :&gt;?, is this possible somehow? Windows stops it.
74364
I have files ending in ~ in my home directory, and I want to delete them. How do I do that? How do I prevent this backup functionality?
122228
I have a movie named Con Man. Apparently, in Windows, you cannot have a file name with the name CON in it.  Can anyone please help me delete it?  It is stored in F:\Movies\Con Man The name of the file that I want to delete is Con.Man.2018.720p.WEBRip.x264-[YTS.AM]  I know there are a lot of similar issues but I am not able to apply them that is why posting here.  Thankyou  PS :: I am a noob!  Edit: Found this on the internet but cant work it out
5953
I have this file (see attached);   And I cannot delete it. it doesn't exist...  I have tried typing rm in the prompt then dragging the file on to it, I have gone to the actual location of the file and it's not there, I have deleted .Trash folders left right and center and I still can't find it... I have just run First Aid on ALL the volumes I have and the file still mocks me. Does anyone else have any suggestions?
93841
When I try to delete one of these two shortcuts, a message appears saying, "If you remove this file, Windows or another program may no longer work correctly."! I don't think that it is possible to keep same named files into a single directory. Is this any malware or anything harmful for my PC?
860
I am trying to delete my existing windows partition using disk management, when I am right clicked on the selected partition the 'Delete Volume' and 'Extend Volume' options are grayed out ( doesn't allow deletion and extension), and I can not also change or remove the drive letter of the disk which has above problem. And Another partition that I don't want to change anything it allows all the options. Why does this happen?
103019
I have a folder on my PC in which I keep my temporary files, which I won't be needing after some time. I manually delete them from time to time. What is a way to automate this? I can think of deleting files whose last access time is greater than 20 minutes using Java, but then again, I would have to run it myself which still wouldn't be automation. I using using Windows and file system is NTFS.
98569
I have two Windows 7, one in drive C and other in drive D. I use the one in drive D. I want to remove the one present in drive C, to find more free disk space.   But I cannot delete the Windows folder present in drive C. It says you need permission something. Also when my computer starts it asks me which OS I want to use, the two OS names are the same "Windows 7". I chose the upper one, this is the one present in Drive D. However when  I choose the other one that does not run, computer restarts after sometime before logging in. This is because I have deleted everything associated with the previous Windows, except the Windows folder. Because I can not delete it.   How can I delete this Windows folder present in drive C, which I cannot use ( and I don't want to use). Please tell me the simple way, ASAP.
57357
How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now I need advice.
77705
I'm unable to delete some folder on my external hard disk. I tried them to delete in safe mode too but I'm not able to perform this. This is a big headache to me now. Even I'm the admin and it still needs the admin privileges to delete them. So how can I get rid of from this trouble?  Please help me!
123952
I want to remove all files in a directory while leaving just some specified files, they don't have anything in common by name. How could I achieve that?  For example, the file names I want to keep are:  file_1.png, another_file.jpg, some_music.mp3