explorer.exe - case-sensitive filenames

  • Thread starter Thread starter nameless fella who does not have a name
  • Start date Start date
N

nameless fella who does not have a name

http://support.microsoft.com/kb/100625
As mentioned in the above KB article, NTFS supports case-sensitive filenames
but Win32 subsystems do not take advantage of the functionality. Is there a
patch /add-on available so that apps can access these multiple files?
 
nameless fella who does not have a name
<namelessfellawhodoesnothaveaname@discussions.microsoft.com> wrote:

>http://support.microsoft.com/kb/100625
>As mentioned in the above KB article, NTFS supports case-sensitive filenames
>but Win32 subsystems do not take advantage of the functionality. Is there a
>patch /add-on available so that apps can access these multiple files?


What multiple files? AFAIK, you cannot have two files whose names
differ only by case stored in the same directory.

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
On Dec 14, 7:50 am, Tim Slattery <Slatter...@bls.gov> wrote:

> What multiple files? AFAIK, you cannot have two files whose names
> differ only by case stored in the same directory.


Reading is skill:

"In NTFS, you can create unique file names, stored in the same
directory, that differ only in case. For example, the following
filenames can coexist in one directory on an NTFS volume:

CASE.TXT
case.txt
case.TXT "
 
Are you using one of the affected Operating systems?

nameless fella who does not have a name wrote:

> http://support.microsoft.com/kb/100625
> As mentioned in the above KB article, NTFS supports case-sensitive filenames
> but Win32 subsystems do not take advantage of the functionality. Is there a
> patch /add-on available so that apps can access these multiple files?
 
Uncle Grumpy <pauld1943@hotmail.com> wrote:

>On Dec 14, 7:50 am, Tim Slattery <Slatter...@bls.gov> wrote:
>
>> What multiple files? AFAIK, you cannot have two files whose names
>> differ only by case stored in the same directory.

>
>Reading is skill:
>
>"In NTFS, you can create unique file names, stored in the same
>directory, that differ only in case. For example, the following
>filenames can coexist in one directory on an NTFS volume:


The KB article says that it applies to NT Advanced Server 3.1, and NT
Workstation 3.1, both very old systems. It says that it was last
reviewed November 1, 2006. I kind of suspect that it was written in
the NT era, and has been hanging around.

>CASE.TXT
>case.txt
>case.TXT "


That's what the KB article says, but when I try to do this, I get told
that there's already a file by that name on the disk. That would be
because Windows (any version) is case-insensitive when searching for
filenames. So I can't even figure out how to create the condition,
much less find a way to handle it.

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
> That's what the KB article says, but when I try to do this, I get told
> that there's already a file by that name on the disk. That would be
> because Windows (any version) is case-insensitive when searching for
> filenames. So I can't even figure out how to create the condition,
> much less find a way to handle it.


I think that was just a bad idea that never went anywhere. I'm hoping
there's nothing out there that actually starts to *let* users put multiple
files in the same folder that only differ in their case--can you imagine how
many apps would then start misbehaving because of that?
 
"Homer J. Simpson" <root@127.0.0.1> wrote:

>> That's what the KB article says, but when I try to do this, I get told
>> that there's already a file by that name on the disk. That would be
>> because Windows (any version) is case-insensitive when searching for
>> filenames. So I can't even figure out how to create the condition,
>> much less find a way to handle it.

>
>I think that was just a bad idea that never went anywhere. I'm hoping
>there's nothing out there that actually starts to *let* users put multiple
>files in the same folder that only differ in their case--can you imagine how
>many apps would then start misbehaving because of that?


It works fine in Unix systems. I don't think it's recommended
practice, particularly, but nothing in Unix/Linux has any problem
handling it.

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
"Bob I" wrote:

> Are you using one of the affected Operating systems?


no. but I don't think breaking backward compatibility is a good idea.
anyways I found this which implicitly says it is for XP:
http://technet.microsoft.com/en-us/library/bb457112.aspx
It states that NTFS is POSIX compliant, which implies case-sensitivity.

Tim Slattery:
> So I can't even figure out how to create the condition, much less find a way to handle it.

I think it is possible to achieve that programatically. otherwise, mount
ntfs partition on any linux/unix system and create that condition.

@ Tim Slattery:
> I don't think it's recommended practice

That's exactly why I asked if there was a patch or add-on available. So that
people could experiment with it and uninstall it if needed. Otherwise, it
would be enabled by default.
 
On Dec 14, 12:02 am, nameless fella who does not have a name
<namelessfellawhodoesnothavean...@discussions.microsoft.com> wrote:
> http://support.microsoft.com/kb/100625
> As mentioned in the above KB article, NTFS supports case-sensitive filenames
> but Win32 subsystems do not take advantage of the functionality. Is there a
> patch /add-on available so that apps can access these multiple files?


If you intall Windows Services for Unix, it gives you the option to
make windows use case sensitive filesystem. I'm looking into a way to
enable this mode without installing SFU..... It's probably a registry
change that then requires a reboot, maybe I'll analyze the reg before/
after SFU install to see how it does it.
 
Here's the help information from Windows Services for UNIX -

Case sensitivity and system security

If you are installing Windows Services for UNIX on Windows XP or
Windows Server 2003 family, you might be required to choose whether to
change the default behavior of object names such as file names to
being case sensitive. The choice you make will affect system security
as well as how Windows Services for UNIX functions.

In Windows, the names of most objects (such as files and directories)
are case preserving, but case insensitive. That means you can use
uppercase and lowercase characters when naming such objects, but
Windows does not distinguish between names based on case alone. For
example, you cannot have two files in the same directory named
sample.txt and Sample.txt because Windows regards the names to be
identical for the purposes of identifying files. The UNIX operating
system, on the other hand, is fully case sensitive, and so UNIX
computers distinguish between object names when the only difference
between those names is the case of characters used in the object
names. On most UNIX computers, therefore, sample.txt and Sample.txt
could appear in the same directory, and the UNIX computer would
distinguish between them when performing operations on the files. For
example, the command rm S*.txt would delete Sample.txt but not
sample.txt.

In order to implement typical UNIX behavior, the Server for NFS and
the Interix subsystem are normally case sensitive when working with
file names. This can present security issues, particularly for Windows
users who are accustomed to the case-insensitive conventions of
Windows. For example, a Trojan horse version of edit.exe named
EDIT.EXE could be stored in the same directory as edit.exe. If a user
were to type edit at a Windows command prompt, the Trojan horse
version (EDIT.EXE) could be executed instead of the standard version.
If case sensitivity is enabled, Windows users should be made aware of
this possibility.

In Windows XP and Windows Server 2003 family, the default behavior of
subsystems other than the Win32 subsystem is to be case preserving but
case insensitive; in previous versions of Windows, such subsystems
were fully case sensitive by default. In order to support standard
UNIX behavior, Windows Services for UNIX Setup allows you to change
the default Windows XP and Windows Server 2003 family behavior for non-
Win32 subsystems when installing the base utilities (which installs
the Interix subsystem) or Server for NFS. If you enable case
sensitivity and then subsequently uninstall Server for NFS and the
base utilities, Windows Services for UNIX Setup will restore the
default, case-insensitive behavior of non-Win32 subsystems.
 
Back
Top