Cant delete file with zero length

Posted: 03-05-2009, 08:47 PM
Somehow I have created a file with zero length - I can't delete it. When I
try I get "Illegal file entry" File system check shows all OK - how can I
get rid of it ?

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Cant delete file with zero length


Responses to "Cant delete file with zero length"

R. C. White
Guest
Posts: n/a
 
Re: Cant delete file with zero length
Posted: 03-11-2009, 01:32 AM
Hi, holdgaj,

Open a Command Prompt and use the old DOS command "Dir", from days before
Directories were Folders. Type "DIR /?" to see a mini-Help file with a list
of switches and parameters that can be used with the Dir command.

Navigate to the directory where your zero-byte file is. Then type "Dir" to
see a list of all the files and folders there, including your mystery file.
You can use Dir /os to "order" them by size; any zero-byte file should be at
the top. (If the list is too long, you can use Dir /o-s to put the
zero-byte file at the bottom of the listing.)

Then use Dir /x to produce the list with an extra column before the
filenames. See if your zero-byte file has a name that includes characters
that are not allowed in an 8.3 filename. If so, use that "short" filename
with the Del command to delete that file.

If all else fails, create a new folder and move everything EXCEPT the
zero-balance file to the new folder. Then use the RD (Remove Directory)
command with the /s switch to remove that entire directory tree, including
all the files and folders left in it; there should be only the one file that
you want to delete. Then you can rename your new folder to the original
name, if you like.

If these tricks don't work, post back with details. "Tried it" doesn't tell
us much; neither does "Didn't work". We need step by step details of what
you did and what you saw, including verbatim text of any error messages.

RC
--
R. C. White, CPA
San Marcos, TX
rc@grandecom.net
Microsoft Windows MVP
Windows Live Mail 2009 (14.0.8064.0206) in Win7 Ultimate x64 7000

"holdgaj" <nospam@nowhere.net> wrote in message
newsp.uqb6pai6fhs8nc@laptop...
> Somehow I have created a file with zero length - I can't delete it. When I
> try I get "Illegal file entry" File system check shows all OK - how can I
> get rid of it ?
 
LinkBack Thread Tools Display Modes
 


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
File length limit in VB? Peter Bako Mac Ofice Word 3 05-29-2005 09:24 AM
File Name Length JM Mac Office 6 05-16-2004 05:37 PM
HLP: Max File/Folder name length Mr. B Windows XP Basics 2 01-08-2004 12:23 AM
File name length Richard Windows XP New Users 0 12-31-2003 05:37 AM
Startup wav file length harpo_74 Windows XP 0 07-16-2003 12:03 PM