Help! Is it an NTFS bug?

Hi, All

I am using Windows XP SP2 with NTFS formatted C partition. When I use
the Windows Explorer, I find that there is an empty folder in C:\RECYCLER
named as S-1-5-21-1064224258-813597681-13430823629-500. (Note it includes
the tailing period, and it is not the virtual folder of Recycle Bin which
named with the SID of the Administrator’s account in the same directory and
normally, I think, a file or folder can not be named with a tailing period).

I can not access, delete or rename this folder either through Windows
Explorer or cmd.exe. if I double click the folder in Explorer, if pops up a
dialog says that it refers to a location that is unavailable. If I type CD
S-1-5-21-1064224258-813597681-13430823629-500. in cmd.exe, it says the
system can not find the path specified.

The weird thing is that, if I drag some file or another folder and drop
to this folder, the file can get into and the Explorer creates another
folder with the similar name S-1-5-21-1064224258-813597681-13430823629-500
just without the tailing period and put the dragged file or folder in it. So
there becomes two such folders in C:\RECYCLER just like:

S-1-5-21-1064224258-813597681-13430823629-500
S-1-5-21-1064224258-813597681-13430823629-500.

and the one without tailing period appears normal and contains the file or
folder I dropped to S-1-5-21-1064224258-813597681-13430823629-500. but the
one with the tailing period still remains the same.

Moreover, I booted the computer in DOS, and use NTFSDos(Winternals) to
access the folder, It is just the same situation when I used the cmd.exe in
Windows. I think it must has something to do with the NTFS file system,
because NTFSDos use the same NTFS file system driver on the very computer.

It just looks like a bug of NTFS or it may be created mistakenly by some
application. Is there any method to remove this annoying folder? It may be
not related to programming, but anyway, you are NTFS file system experts.
Please help me, thank you in advance!

Sincerely,

Chong Wu

All is simple. There are Recycle Bins for different users.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Chong”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, February 01, 2005 12:01 AM
Subject: [ntfsd] Help! Is it an NTFS bug?

> Hi, All
>
> I am using Windows XP SP2 with NTFS formatted C partition. When I use
> the Windows Explorer, I find that there is an empty folder in C:\RECYCLER
> named as S-1-5-21-1064224258-813597681-13430823629-500. (Note it includes
> the tailing period, and it is not the virtual folder of Recycle Bin which
> named with the SID of the Administrator’s account in the same directory and
> normally, I think, a file or folder can not be named with a tailing period).
>
> I can not access, delete or rename this folder either through Windows
> Explorer or cmd.exe. if I double click the folder in Explorer, if pops up a
> dialog says that it refers to a location that is unavailable. If I type CD
> S-1-5-21-1064224258-813597681-13430823629-500. in cmd.exe, it says the
> system can not find the path specified.
>
> The weird thing is that, if I drag some file or another folder and drop
> to this folder, the file can get into and the Explorer creates another
> folder with the similar name S-1-5-21-1064224258-813597681-13430823629-500
> just without the tailing period and put the dragged file or folder in it. So
> there becomes two such folders in C:\RECYCLER just like:
>
> S-1-5-21-1064224258-813597681-13430823629-500
> S-1-5-21-1064224258-813597681-13430823629-500.
>
> and the one without tailing period appears normal and contains the file or
> folder I dropped to S-1-5-21-1064224258-813597681-13430823629-500. but the
> one with the tailing period still remains the same.
>
> Moreover, I booted the computer in DOS, and use NTFSDos(Winternals) to
> access the folder, It is just the same situation when I used the cmd.exe in
> Windows. I think it must has something to do with the NTFS file system,
> because NTFSDos use the same NTFS file system driver on the very computer.
>
> It just looks like a bug of NTFS or it may be created mistakenly by some
> application. Is there any method to remove this annoying folder? It may be
> not related to programming, but anyway, you are NTFS file system experts.
> Please help me, thank you in advance!
>
> Sincerely,
>
> Chong Wu
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

I cannot imagine why this is an NTFS bug - NTFS created whatever
directory it was requested to create.

My suggestion is to use the short file name to delete the directory
(type “dir /x” at the command line to get that name).

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Chong
Sent: Monday, January 31, 2005 4:01 PM
To: ntfsd redirect
Subject: [ntfsd] Help! Is it an NTFS bug?

Hi, All

I am using Windows XP SP2 with NTFS formatted C partition. When I
use
the Windows Explorer, I find that there is an empty folder in
C:\RECYCLER
named as S-1-5-21-1064224258-813597681-13430823629-500. (Note it
includes
the tailing period, and it is not the virtual folder of Recycle Bin
which
named with the SID of the Administrator’s account in the same directory
and
normally, I think, a file or folder can not be named with a tailing
period).

I can not access, delete or rename this folder either through
Windows
Explorer or cmd.exe. if I double click the folder in Explorer, if pops
up a
dialog says that it refers to a location that is unavailable. If I type
CD
S-1-5-21-1064224258-813597681-13430823629-500. in cmd.exe, it says the
system can not find the path specified.

The weird thing is that, if I drag some file or another folder and
drop
to this folder, the file can get into and the Explorer creates another
folder with the similar name
S-1-5-21-1064224258-813597681-13430823629-500
just without the tailing period and put the dragged file or folder in
it. So
there becomes two such folders in C:\RECYCLER just like:

S-1-5-21-1064224258-813597681-13430823629-500
S-1-5-21-1064224258-813597681-13430823629-500.

and the one without tailing period appears normal and contains the file
or
folder I dropped to S-1-5-21-1064224258-813597681-13430823629-500. but
the
one with the tailing period still remains the same.

Moreover, I booted the computer in DOS, and use NTFSDos(Winternals)
to
access the folder, It is just the same situation when I used the cmd.exe
in
Windows. I think it must has something to do with the NTFS file system,
because NTFSDos use the same NTFS file system driver on the very
computer.

It just looks like a bug of NTFS or it may be created mistakenly by
some
application. Is there any method to remove this annoying folder? It may
be
not related to programming, but anyway, you are NTFS file system
experts.
Please help me, thank you in advance!

Sincerely,

Chong Wu


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

A filename with a trailing ‘.’ is a perfectly legal file name in NT. The
unfortunate problem you are seeing is a limitation in the Win32 shell
components (Explorer & CMD).

Try passing L"\\?\c:\temp\xyzzy." to CreateFileW and then try to delete
that with the shell. Better yet, use ZwCreateFile!

There are applets out there that will delete any legal NT (NTFS)
file/directory (deltree?). Many of us have written them too.

/ted

-----Original Message-----
From: Chong [mailto:xxxxx@gmail.com]
Sent: Monday, January 31, 2005 4:01 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Help! Is it an NTFS bug?

Hi, All

I am using Windows XP SP2 with NTFS formatted C partition. When I use
the Windows Explorer, I find that there is an empty folder in C:\RECYCLER
named as S-1-5-21-1064224258-813597681-13430823629-500. (Note it includes
the tailing period, and it is not the virtual folder of Recycle Bin which
named with the SID of the Administrator’s account in the same directory and
normally, I think, a file or folder can not be named with a tailing period).

I can not access, delete or rename this folder either through Windows
Explorer or cmd.exe. if I double click the folder in Explorer, if pops up a
dialog says that it refers to a location that is unavailable. If I type CD
S-1-5-21-1064224258-813597681-13430823629-500. in cmd.exe, it says the
system can not find the path specified.

The weird thing is that, if I drag some file or another folder and drop
to this folder, the file can get into and the Explorer creates another
folder with the similar name S-1-5-21-1064224258-813597681-13430823629-500
just without the tailing period and put the dragged file or folder in it. So

there becomes two such folders in C:\RECYCLER just like:

S-1-5-21-1064224258-813597681-13430823629-500
S-1-5-21-1064224258-813597681-13430823629-500.

and the one without tailing period appears normal and contains the file or
folder I dropped to S-1-5-21-1064224258-813597681-13430823629-500. but the
one with the tailing period still remains the same.

Moreover, I booted the computer in DOS, and use NTFSDos(Winternals) to
access the folder, It is just the same situation when I used the cmd.exe in
Windows. I think it must has something to do with the NTFS file system,
because NTFSDos use the same NTFS file system driver on the very computer.

It just looks like a bug of NTFS or it may be created mistakenly by some

application. Is there any method to remove this annoying folder? It may be
not related to programming, but anyway, you are NTFS file system experts.
Please help me, thank you in advance!

Sincerely,

Chong Wu


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@livevault.com To unsubscribe
send a blank email to xxxxx@lists.osr.com

Thank you Ted, It really works!

Chong

“Ted Hess” wrote in message news:xxxxx@ntfsd…
>A filename with a trailing ‘.’ is a perfectly legal file name in NT. The
> unfortunate problem you are seeing is a limitation in the Win32 shell
> components (Explorer & CMD).
>
> Try passing L"\\?\c:\temp\xyzzy." to CreateFileW and then try to
> delete
> that with the shell. Better yet, use ZwCreateFile!
>
> There are applets out there that will delete any legal NT (NTFS)
> file/directory (deltree?). Many of us have written them too.
>
> /ted
>
> -----Original Message-----
> From: Chong [mailto:xxxxx@gmail.com]
> Sent: Monday, January 31, 2005 4:01 PM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Help! Is it an NTFS bug?
>
>
> Hi, All
>
> I am using Windows XP SP2 with NTFS formatted C partition. When I use
> the Windows Explorer, I find that there is an empty folder in C:\RECYCLER
> named as S-1-5-21-1064224258-813597681-13430823629-500. (Note it includes
> the tailing period, and it is not the virtual folder of Recycle Bin which
> named with the SID of the Administrator’s account in the same directory
> and
> normally, I think, a file or folder can not be named with a tailing
> period).
>
> I can not access, delete or rename this folder either through Windows
> Explorer or cmd.exe. if I double click the folder in Explorer, if pops up
> a
> dialog says that it refers to a location that is unavailable. If I type CD
> S-1-5-21-1064224258-813597681-13430823629-500. in cmd.exe, it says the
> system can not find the path specified.
>
> The weird thing is that, if I drag some file or another folder and drop
> to this folder, the file can get into and the Explorer creates another
> folder with the similar name S-1-5-21-1064224258-813597681-13430823629-500
> just without the tailing period and put the dragged file or folder in it.
> So
>
> there becomes two such folders in C:\RECYCLER just like:
>
> S-1-5-21-1064224258-813597681-13430823629-500
> S-1-5-21-1064224258-813597681-13430823629-500.
>
> and the one without tailing period appears normal and contains the file or
> folder I dropped to S-1-5-21-1064224258-813597681-13430823629-500. but the
> one with the tailing period still remains the same.
>
> Moreover, I booted the computer in DOS, and use NTFSDos(Winternals) to
> access the folder, It is just the same situation when I used the cmd.exe
> in
> Windows. I think it must has something to do with the NTFS file system,
> because NTFSDos use the same NTFS file system driver on the very computer.
>
> It just looks like a bug of NTFS or it may be created mistakenly by
> some
>
> application. Is there any method to remove this annoying folder? It may
> be
> not related to programming, but anyway, you are NTFS file system experts.
> Please help me, thank you in advance!
>
> Sincerely,
>
> Chong Wu
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@livevault.com To
> unsubscribe
> send a blank email to xxxxx@lists.osr.com
>