I want to delete a file but it shows an error: "System cannot find the file specified"
what's the problem?
the file which I want to delete:
when I delete the file:
the file name is :
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
I think it is the special character "\" in the file name that is likely breaking things. I expect that it will not let you rename it through the GUI either (but I would try). You can also try renaming it from the command line using the short file name notation that might work.
I 'think' that syntax would be: "ren down2~.net down2.net" (someone please feel free to correct me on that syntax if incorrect).
Running CHKDSK on the drive may also help as Windows should see it as a non-compatible file name and offer to correct... however as I see that is a My Passport drive, and we do not know what else you may have on it, make sure that you do not break/alter other files by trying to fix them to be happy in Windows.
Try the rename first... or if you do something like load up a Linux Live CD that can mount that device would also let you try to rename it to something manageable.
Just to add my two cents... I had the same problem trying to delete a nested folder. I finally solved it by using Winrar. Right click on the file or folder and click "add to archive", and click the checkbox "delete files after archiving" in the option window that pops up. This worked for me when nothing else would.
Use 7-zip to "move" them: read on...
When facing an inability to delete a file because of "the system cannot find the file specified" I've tried all the common tricks (verify permissions, verify it is not in use by any process, command line, free unlocker tools, etc) without success. What finally got rid of them for me was 7-zip. Using 9.20 "7-zip File Manager" interface (not just the right click on file options) I was able to "Move" the folder which contained the problem files. [7-zip on my admin PC looking at volume with problem files over on a server, moved them off of server] Sure, that just moves the problem but there is the beauty, you move them to a disk you can format: a VMDK, a thumb drive, etc... problem solved ;)
I use robocopy with the /MIR (mirror) switch. EX:
If the file "07352." is in z:\temp\07352. I create and empty folder on c:\temp\ and use the robocopy command:
robocopy c:\temp\ z:\temp\ /s /e /mir /w:0 /r:0
This will empty the temp directory, this will also work when a directory is too deep to delete. Be careful this command will delete all files and folders in the z:\temp folder.
For deleting stubborn files, folders I usually use Unlocker with quite good results:
Here are their own words:
> If you've ever been unable to delete a file in Windows, and can't > figure out what program's using it, Unlocker is the solution. Have you > ever seen these Windows error messages? > > Cannot delete folder: It is being used by another person or program > Cannot delete file: Access is denied > There has been a sharing violation. > The source or destination file may be in use. > The file is in use by another program or user. > Make sure the disk is not full or write-protected and that the file is not currently in use. > > Unlocker can help! Simply right-click the folder or file and select > Unlocker. If the folder or file is locked, a window listing of lockers > will appear. Simply click Unlock All and you are done!