I was trying to save some information from X. I saved it as a PDF file but couldn’t open it. I assumed it was corrupted or didn’t save properly so I tried to delete it and couldn’t even do that. I noticed when I saved the information, the first few lines from the article were used as the title. It created an extra-long name. I’m convinced the problem was the extra-long name, so I tried renaming it. That did not work.
I right-clicked on the file and clicked on “Unlocker” in the menu.
A little box is supposed to open to give me the option to “Delete, Rename or Move”. It didn’t. I restarted the system thinking that Windows had the file locked. It didn’t help. I scanned the hard drive for errors and found none.
Finally, it clicked in my mind to try the command prompt. In this case, I went to the CMD prompt by going to the top of the File Manager window and clicking on the path name to highlight it, typed in CMD and hit enter. This opens a command prompt already in that folder.
I detailed that procedure here: Easy Way To Open CMD Prompt To A Folder
To get the file name right, I went to the file manager again and highlighted the file then clicked on F2 to rename. I then right-clicked on the highlighted name and clicked on “copy”. Then I went to the command prompt and typed:
I used “Ctrl+V” to paste in the name. The actual full file name is in my image above. I already deleted that image and I’m not typing that out. 🙂
Be sure to put the quotes around the name. The first time I tried this, I didn’t highlight the extension part of the file and then typed it in not realizing there was a space before the extension. Had to do it a second time but it worked.
Note: Be careful deleting files using the command prompt. They do not go to the Recycle bin (no restore option).