If you want to enable case-sensitive attributes for folders in Windows 11 or Windows 10, you can follow this step-by-step guide. Here is a way, involving Command Prompt or Terminal to enable or disable case-sensitive attributes in Windows 11/10 PC.
There is already a file with the same name in this location
If you have ever used Linux, you would know that you can save a file or a folder with Case Sensitive characters. But the sad part is that if using Windows 11 or Windows 10 OS, you cannot use Case Sensitive Attribute for Folders. Let me explain what this means. If you use Linux, you can save files and folder names in a common location such as File.txt, file.txt, FILE.txt, FilE.txt, and so on. But in Windows, if you try it, it gives an error message – There is already a file with the same name in this location.
I know, you might be thinking that by using Windows Subsystem For a Linux terminal, you might be able to do so. But let me remind you that at the end of the day, Windows will be handling this file naming integration. So, that does not make any sense at all.
Case sensitivity for folder names on Windows 10 can be enabled on a per-directory basis thanks to the NTFS system feature. You can enable Case Sensitive Attribute for Folders in Windows 10. This post shows how to enable or disable Case Sensitive Attributes and check if it is active in a location.
Enable Case Sensitive Attribute for Folders in Windows
This will work from Windows 11 and Windows 10. Microsoft introduced a new way to enable NTFS support to treat files and folders as case-sensitive and that too on a per-folder basis.
In simple words, we will not receive any error as shown in the picture above and we will be able to save files and folders by names like File.txt, file.txt, FILE.txt, FilE.txt, etc. in a common location. To make the changes we use a built-in utility called FSUTIL.exe.
Query Case Sensitive Attribute of a Folder
First of all, start by opening a Command Prompt with Administrator-level privileges. To do that, Press the WIN + X button combo or right-click on the Start button and click on Command Prompt (Admin). Click on Yes for the UAC or User Account Control prompt that you get.
Now, type in the following command and hit Enter.
fsutil.exe file setCaseSensitiveInfo “<PATH>”
Make sure that you replace <PATH> with the actual location on the folder you want to make this work on.
This will tell you if the Case Sensitive Attribute is enabled or disabled on the location.
Enable Case Sensitive Attribute of a Folder
Press the WIN + X button combo or right-click on the Start button and click on Command Prompt (Admin).
Now, type in the following command and hit Enter.
fsutil.exe file setCaseSensitiveInfo “<PATH> enable”
Make sure that you replace <PATH> with the actual location on the folder you want to make this work on.
This will enable the Case Sensitive Attribute of a Folder on your used path.
Disable Case Sensitive Attribute of a Folder
Press the WIN + X button combo or right-click on the Start button and click on Command Prompt (Admin).
Now, type in the following command and hit Enter.
fsutil.exe file setCaseSensitiveInfo “<PATH> disable”
Make sure that you replace <PATH> with the actual location on the folder you want to make this work on.
This will disable the Case Sensitive Attribute of a Folder on your used path.
All the best!
Read: How to create blank folder names in Windows
How do I enable case sensitivity in a folder?
To enable case sensitivity in a folder in Windows 11/10, open the Command Prompt instance of Terminal or Command Prompt with administrator privilege first. Then, enter this command: fsutil.exe file setCaseSensitiveInfo “<PATH> enable”. However, if you want to disable it, enter this command: fsutil.exe file setCaseSensitiveInfo “<PATH> disable”.
Are Windows folders case sensitive?
Yes, Windows folders are case-sensitive. However, you can turn on or off this case sensitivity with the help of Command Prompt. For that, you can open the Command Prompt with administrator permission and use this command: fsutil.exe file setCaseSensitiveInfo “<PATH> enable”.
Read: How to create a folder name starting with Dot in Windows.