Windows XP Community - XPHeads



Cannot delete 0 b file on desk top

microsoft.public.windowsxp.help_and_support


Reply
  #1 (permalink)  
Old 05-02-2008, 01:52 AM
John Wilson
 
Posts: n/a
Cannot delete 0 b file on desk top
Under win XP pro any attempt to move or delete it gives:

Error Deleting File or Folder
Cannot delete file: Cannot read from the source file or disk.

Help appreciated, John.


** Posted from http://www.teranews.com **
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-02-2008, 11:51 AM
blackforce
 
Posts: n/a
RE: Cannot delete 0 b file on desk top
something must have a tie on that file.

You can download process explorer from sysinternals.

Once installed you can click at the top find handle, type in the filename of
the file and see what has a hold on it. Kill the process and then you should
be able to delete it.

"John Wilson" wrote:

> Under win XP pro any attempt to move or delete it gives:
>
> Error Deleting File or Folder
> Cannot delete file: Cannot read from the source file or disk.
>
> Help appreciated, John.
>
>
> ** Posted from http://www.teranews.com **
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-02-2008, 09:20 PM
John Wilson
 
Posts: n/a
Re: Cannot delete 0 b file on desk top
Sorry for the double posting. Handle or DLL substring search for the file
in question in process explorer returns no results. Still unable to delete
it.
John.

"blackforce" <blackforce@discussions.microsoft.com> wrote in message
news:83AA309E-69F6-43DA-9F48-530FE3D7E34D@microsoft.com...
> something must have a tie on that file.
>
> You can download process explorer from sysinternals.
>
> Once installed you can click at the top find handle, type in the filename
> of
> the file and see what has a hold on it. Kill the process and then you
> should
> be able to delete it.
>
> "John Wilson" wrote:
>
>> Under win XP pro any attempt to move or delete it gives:
>>
>> Error Deleting File or Folder
>> Cannot delete file: Cannot read from the source file or disk.
>>
>> Help appreciated, John.
>>
>>
>> ** Posted from http://www.teranews.com **
>>



** Posted from http://www.teranews.com **
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-03-2008, 10:46 AM
John Coode
 
Posts: n/a
Re: Cannot delete 0 b file on desk top
John Wilson wrote:
> Under win XP pro any attempt to move or delete it gives:
>
> Error Deleting File or Folder
> Cannot delete file: Cannot read from the source file or disk.
>
> Help appreciated, John.
>
>
> ** Posted from http://www.teranews.com *


Try booting to Recovery Console and running chkdsk /r on the affected
drive. As the file is zero byte and unreadable by Explorer it is
probably corrupt and chkdsk will repair or delete it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-05-2008, 02:22 AM
John Wilson
 
Posts: n/a
Re: Cannot delete 0 b file on desk top

"John Coode" <faecius@yahoo.co.uk> wrote in message
news:OMmWyrQrIHA.4560@TK2MSFTNGP03.phx.gbl...
> John Wilson wrote:
>> Under win XP pro any attempt to move or delete it gives:
>>
>> Error Deleting File or Folder
>> Cannot delete file: Cannot read from the source file or disk.
>>
>> Help appreciated, John. ** Posted from http://www.teranews.com *

>
> Try booting to Recovery Console and running chkdsk /r on the affected
> drive. As the file is zero byte and unreadable by Explorer it is probably
> corrupt and chkdsk will repair or delete it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks, John.
I did as you said and chkdsk said it repaired one or more errors.
Apparently this file was not one of them as it still cannot be deleted!
John.


** Posted from http://www.teranews.com **
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-06-2008, 06:26 AM
ju.c
 
Posts: n/a
Re: Cannot delete 0 b file on desk top
I had a similar problem with an undeletable file and I fixed it by
restoring a file over it with a file that I created with the same name
using Acronis True Image.


Example using the corrupt file name badfile.ext

1. Create badfile.ext in another folder
2. Create a backup of badfile.ext
3. Restore badfile.ext to the folder where the undeletable file is
4. Delete badfile.ext
5. Run chkdsk


ju.c


"John Wilson" <e_john_wilson_no_junk_@hotmail.com> wrote in message
news:32f46$481e6f74$23256@news.teranews.com...
>
> "John Coode" <faecius@yahoo.co.uk> wrote in message
> news:OMmWyrQrIHA.4560@TK2MSFTNGP03.phx.gbl...
>> John Wilson wrote:
>>> Under win XP pro any attempt to move or delete it gives:
>>>
>>> Error Deleting File or Folder
>>> Cannot delete file: Cannot read from the source file or disk.
>>>
>>> Help appreciated, John. ** Posted from http://www.teranews.com *

>>
>> Try booting to Recovery Console and running chkdsk /r on the affected
>> drive. As the file is zero byte and unreadable by Explorer it is
>> probably corrupt and chkdsk will repair or delete it.

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Thanks, John.
> I did as you said and chkdsk said it repaired one or more errors.
> Apparently this file was not one of them as it still cannot be
> deleted!
> John.
>
> ** Posted from http://www.teranews.com **


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-25-2008, 03:39 PM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Hopefully the answer!
John

I had a similar problem on two machines. The symptoms are files that are named "XXXXXXX.", appear to be 0 bytes and will not delete. Having passed through this thread and combined with another I have now successfully deleted the files. The process is outlined below:

In this example the offending filename is "HAG6506AB." and is on the Desktop, for which the path is D:\Documents and Settings\User01\Desktop

First bring up a command prompt, via Start, Run, cmd

Run a DIR on the desktop folder using the /x amd /a parameters to display the full file information and short names. You should then see the offending file, in this case "HAG650~1" as the shortname and "HAG6506AB." as the long name.

Run an ATTRIB on the file, using the shortname for the file:

attrib \\?\D:\"Documents and Settings"\stephen.j.barber\Desktop\HAG650~1

This may well show an "S" system attribute:

S \\?\D:\Documents and Settings\User01\Desktop\HAG6506AB

The reason for the \\?\ at the beginning and the "quotes" is that this format bypasses all Win32 file name canonicalization

Remove the System using the shortname for the file:

attrib -s \\?\D:\"Documents and Settings"\User01\Desktop\HAG650~1

and then delete the file via:

del \\?\D:\"Documents and Settings"\User01\Desktop\HAG650~1

If all goes well, the files should disappear! The cause of the issue is the "." at the end of the filename which Windows does not like, however the NTFS file system is quite happy with. Microsoft hypocrisy at its best :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-25-2008, 09:46 PM
jimbo571@operamail.com
 
Posts: n/a
Re: Cannot delete 0 b file on desk top
On Wed, 25 Jun 2008 16:39:34 +0100, plexor
<plexor.3bkizp@no-mx.forums.xpheads.com> wrote:

>
>John
>
>I had a similar problem on two machines. The symptoms are files that
>are named "XXXXXXX.", appear to be 0 bytes and will not delete. Having
>passed through this thread and combined with another I have now
>successfully deleted the files. The process is outlined below:
>
>In this example the offending filename is "HAG6506AB." and is on the
>Desktop, for which the path is D:\Documents and Settings\User01\Desktop
>
>First bring up a command prompt, via Start, Run, cmd
>
>Run a DIR on the desktop folder using the /x amd /a parameters to
>display the full file information and short names. You should then see
>the offending file, in this case "HAG650~1" as the shortname and
>"HAG6506AB." as the long name.
>
>Run an ATTRIB on the file, using the shortname for the file:
>
>attrib \\?\D:\"Documents and
>Settings"\stephen.j.barber\Desktop\HAG650~1
>
>This may well show an "S" system attribute:
>
>S \\?\D:\Documents and
>Settings\User01\Desktop\HAG6506AB
>The reason for the \\?\ at the beginning and the "quotes" is that this
>format bypasses all Win32 file name canonicalization
>
>Remove the System using the shortname for the file:
>
>attrib -s \\?\D:\"Documents and Settings"\User01\Desktop\HAG650~1
>
>and then delete the file via:
>
>del \\?\D:\"Documents and Settings"\User01\Desktop\HAG650~1
>
>If all goes well, the files should disappear! The cause of the issue is
>the "." at the end of the filename which Windows does not like, however
>the NTFS file system is quite happy with. Microsoft hypocrisy at its
>best :-)


Best way , download *Unlocker* which unlocks/deletes any file .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-26-2008, 05:58 AM
tuvw643
 
Posts: n/a
Re: Cannot delete 0 b file on desk top

We provide all 'WOW Gold' (http://www.ugamegold.com) services. You can
buy WOW Gold, Cheap WOW Gold here. We provide Cheap WOW Gold to each
loyal and reliable customer.




--
tuvw643
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:09 AM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74