It is currently Mon Jul 01, 2024 3:19 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Those undeletable files
PostPosted: Sat Aug 13, 2011 12:59 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Ever get this message while trying to delete a file?

Error deleting file
Cannot read from file or disc.

Well i figured out how to solve it today.
2 months ago i downloaded a file torrent named Chaos.It added a file in my docs named Chaos with no file extension.
Well i assumed i could just get rid of it by deleting the file.Right click delete...uh uhh.
The problem is Windows see's files with no extensions as not there usually because they have a "dot" right after the file name..So you can not delete nor rename them.So i opened the command prompt and tried to delete the file that way.No luck.
A friend of mine told me that if i type the command this way...
del "\\?\C:\Documents and Settings\Compaq_Owner.FAMILY-ROOM\RestOfDirectoryStructureToFile\fileName.
and then hit enter that would work.I tried that and it didn't.It would have if the file had a "dot" at the end but this one didn't.
So i got to thinking...maybe if i hi-light the name of the file (right click /rename), i can get a better idea of what is in the characters.Come to find out the file name was Chaos and then a space after. :)
So i opened cmd prompt again and typed
del "\\?\C:\Documents and Settings\Compaq_Owner.FAMILY-ROOM\Desktop\FDM\Chaos and then a space hit enter, and vuala...Windows deleted the file.
So if you ever run into this problem use this command and either a space or a dot at the end of the file name.
Depending on how the culprit file is named.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Those undeletable files
PostPosted: Sat Aug 13, 2011 10:59 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
Process of elimination and persistence= 1 happy gimper. Cool. That's the way to do it.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Those undeletable files
PostPosted: Sat Aug 13, 2011 11:24 am  (#3) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 346
Location: Wisconsin
I bet renaming the file to delete the trailing space (or other unsavory characters) would also have worked. I've done that a few times.

_________________
Image


Top
 Post subject: Re: Those undeletable files
PostPosted: Sat Aug 13, 2011 11:59 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
Erasing with a joker should also work: "del Chaos*"

_________________
Image


Top
 Post subject: Re: Those undeletable files
PostPosted: Mon Aug 15, 2011 9:18 am  (#5) 
Offline
GimpChat Member

Joined: Jul 11, 2010
Posts: 349
If you use Command Line often, I have been using a really handy program that makes life a lot easier.


Clickie is a handy utility that will add 2 new features to the context menu (right click) of Windows Explorer: 1/ copy path name & 2/ open command window in selected directory.

Image

Sure saves a lot of typing. Can be found at: http://www.defoort.com/en/clickie


Top
 Post subject: Re: Those undeletable files
PostPosted: Mon Aug 15, 2011 11:22 am  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
Microsoft has downloadable for free a "power tool" called "CmdWindowHere" that does the same thing.

And if you drag a file from the explorer to an open command prompt, it pastes the file path/name in the input line.

_________________
Image


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts GGR FILES

3

No new posts Help files

2

No new posts How To Use EPS Files As Bruhes

2

No new posts OPEN GIH FILES

2

No new posts Attachment(s) [solved] xcf files

7



* Login  



Powered by phpBB3 © phpBB Group