PC Review


Reply
Thread Tools Rate Thread

Cannot delete files with invalid filenames

 
 
Hakan Aysan
Guest
Posts: n/a
 
      11th Feb 2005
Hi,


We are trying to delete a number of files on a Windows 2000 Server with
NTFS. They are in a short path, and all have illegal filenames (appeared
AFTER a successful checkdisk that ran after a RAID disk crash). For example
E:\users\joebloggs\M0?Z?KHE.GIF


Nothing has worked: we have tried the posix deletion tools, deleting the
directory itself, using \\?\ and \\.\ syntax to access them as all suggested
by MS.


Any ideas?


 
Reply With Quote
 
 
 
 
CheckAbdoul
Guest
Posts: n/a
 
      11th Feb 2005
Open up a command prompt and type 'dir /x'. This will list you the short
path name of the file.
Run a 'del' command on the shortpath name.

--
Cheers
Check Abdoul [VC++ MVP]
-----------------------------------

"Hakan Aysan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
>
> We are trying to delete a number of files on a Windows 2000 Server with
> NTFS. They are in a short path, and all have illegal filenames (appeared
> AFTER a successful checkdisk that ran after a RAID disk crash). For

example
> E:\users\joebloggs\M0?Z?KHE.GIF
>
>
> Nothing has worked: we have tried the posix deletion tools, deleting the
> directory itself, using \\?\ and \\.\ syntax to access them as all

suggested
> by MS.
>
>
> Any ideas?
>
>



 
Reply With Quote
 
Hakan Aysan
Guest
Posts: n/a
 
      12th Feb 2005
Hi,


We've tried dir /x, but the files are 8.3, and dir /x doesn't list a short
file name. Every deletion tool and syntax basically says "The filename,
directory name, or volume label syntax is incorrect."

Surely there must be a way to delete these files? There is a knowledgebase
article number 320081 which is quite comprehensive on this subject, but
nothing suggested there works here. I should also say that checkdisk has
been run several times, and reports no problems at all. There are literally
11 files corrupt in this form, the rest of the disk and data is fine.


Thanks for any suggestions!


"CheckAbdoul" <checkabdoul at mvps dot org> wrote in message
news:(E-Mail Removed)...
> Open up a command prompt and type 'dir /x'. This will list you the
> short
> path name of the file.
> Run a 'del' command on the shortpath name.
>
> --
> Cheers
> Check Abdoul [VC++ MVP]
> -----------------------------------
>
> "Hakan Aysan" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>>
>> We are trying to delete a number of files on a Windows 2000 Server with
>> NTFS. They are in a short path, and all have illegal filenames (appeared
>> AFTER a successful checkdisk that ran after a RAID disk crash). For

> example
>> E:\users\joebloggs\M0?Z?KHE.GIF
>>
>>
>> Nothing has worked: we have tried the posix deletion tools, deleting the
>> directory itself, using \\?\ and \\.\ syntax to access them as all

> suggested
>> by MS.
>>
>>
>> Any ideas?
>>
>>

>
>



 
Reply With Quote
 
R. C. White
Guest
Posts: n/a
 
      14th Feb 2005
Hi, Hakan.

Have you tried isolating these file in a folder, then removing the folder?

In a "DOS" window, use the rd command with the /s switch to remove the
entire directory tree, subdirectories, files and all. Before you do it, of
course, make sure that everything you DO want to keep has been moved to some
other directory.

rd <foldername> /s

>>> E:\users\joebloggs\M0?Z?KHE.GIF

rd e:\users\joebloggs /s

RC
--
R. C. White, CPA
San Marcos, TX
(E-Mail Removed)
Microsoft Windows MVP

"Hakan Aysan" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
>
>
> We've tried dir /x, but the files are 8.3, and dir /x doesn't list a short
> file name. Every deletion tool and syntax basically says "The filename,
> directory name, or volume label syntax is incorrect."
>
> Surely there must be a way to delete these files? There is a knowledgebase
> article number 320081 which is quite comprehensive on this subject, but
> nothing suggested there works here. I should also say that checkdisk has
> been run several times, and reports no problems at all. There are
> literally 11 files corrupt in this form, the rest of the disk and data is
> fine.
>
>
> Thanks for any suggestions!
>
>
> "CheckAbdoul" <checkabdoul at mvps dot org> wrote in message
> news:(E-Mail Removed)...
>> Open up a command prompt and type 'dir /x'. This will list you the
>> short
>> path name of the file.
>> Run a 'del' command on the shortpath name.
>>
>> --
>> Cheers
>> Check Abdoul [VC++ MVP]
>> -----------------------------------
>>
>> "Hakan Aysan" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi,
>>>
>>>
>>> We are trying to delete a number of files on a Windows 2000 Server with
>>> NTFS. They are in a short path, and all have illegal filenames (appeared
>>> AFTER a successful checkdisk that ran after a RAID disk crash). For

>> example
>>> E:\users\joebloggs\M0?Z?KHE.GIF
>>>
>>>
>>> Nothing has worked: we have tried the posix deletion tools, deleting the
>>> directory itself, using \\?\ and \\.\ syntax to access them as all

>> suggested
>>> by MS.
>>>
>>>
>>> Any ideas?


 
Reply With Quote
 
Hakan Aysan
Guest
Posts: n/a
 
      14th Feb 2005
Just tried that. Again, an error complaining about invalid filenames.


"R. C. White" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, Hakan.
>
> Have you tried isolating these file in a folder, then removing the folder?
>
> In a "DOS" window, use the rd command with the /s switch to remove the
> entire directory tree, subdirectories, files and all. Before you do it,
> of course, make sure that everything you DO want to keep has been moved to
> some other directory.
>
> rd <foldername> /s
>
>>>> E:\users\joebloggs\M0?Z?KHE.GIF

> rd e:\users\joebloggs /s
>
> RC
> --
> R. C. White, CPA
> San Marcos, TX
> (E-Mail Removed)
> Microsoft Windows MVP
>
> "Hakan Aysan" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi,
>>
>>
>> We've tried dir /x, but the files are 8.3, and dir /x doesn't list a
>> short file name. Every deletion tool and syntax basically says "The
>> filename, directory name, or volume label syntax is incorrect."
>>
>> Surely there must be a way to delete these files? There is a
>> knowledgebase article number 320081 which is quite comprehensive on this
>> subject, but nothing suggested there works here. I should also say that
>> checkdisk has been run several times, and reports no problems at all.
>> There are literally 11 files corrupt in this form, the rest of the disk
>> and data is fine.
>>
>>
>> Thanks for any suggestions!
>>
>>
>> "CheckAbdoul" <checkabdoul at mvps dot org> wrote in message
>> news:(E-Mail Removed)...
>>> Open up a command prompt and type 'dir /x'. This will list you the
>>> short
>>> path name of the file.
>>> Run a 'del' command on the shortpath name.
>>>
>>> --
>>> Cheers
>>> Check Abdoul [VC++ MVP]
>>> -----------------------------------
>>>
>>> "Hakan Aysan" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi,
>>>>
>>>>
>>>> We are trying to delete a number of files on a Windows 2000 Server with
>>>> NTFS. They are in a short path, and all have illegal filenames
>>>> (appeared
>>>> AFTER a successful checkdisk that ran after a RAID disk crash). For
>>> example
>>>> E:\users\joebloggs\M0?Z?KHE.GIF
>>>>
>>>>
>>>> Nothing has worked: we have tried the posix deletion tools, deleting
>>>> the
>>>> directory itself, using \\?\ and \\.\ syntax to access them as all
>>> suggested
>>>> by MS.
>>>>
>>>>
>>>> Any ideas?

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How can I delete filenames so that they can not be recovered mm Windows XP General 0 24th Jan 2011 12:37 AM
DelinvFile - Delete Invalid Files and Folders Barry Karas Windows XP Help 2 29th Jun 2006 12:55 PM
Delete Invalid Files on Getting Started Page Dick Microsoft Frontpage 2 26th Oct 2005 08:12 PM
Too long filenames to delete.. Rod Janson Microsoft Windows 2000 4 19th Aug 2005 05:51 PM
Re: Invalid long filenames Dave Patrick Microsoft Windows 2000 File System 0 21st Jul 2003 03:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:28 AM.