I created a undeletable file in Windows 7
I was programming in Python and accidentally passed the contents instead of the filename to open()
and I have been left with a file called " being lazy
" (with leading and trailing spaces)
which can not be deleted.
When I try to delete the file, I get this error:
Could not find this item
This is no longer located in [system path]\essays. Verify the item's location and try again
I can not delete the folder it is in. I have restarted the computer.
I try to delete it with the Command Prompt, does not work:
If I try to open it with Notepad, nothing happens. If I try and open it with Notepad++, it says it does not exist.
In the command line, try del *lazy*
.