• 0

Can't create files/folders ending in dot (.) character...


Question

I can't create a folder ending in a dot. Windows doesn't complain, it simply renames the folder without the dot, without telling me.

I've tried the usual "do it in command prompt" with echo > , rename, and mkdir. I've created it in Linux (neither FAT nor NTFS complain), but as soon as Windows sees the folder, it just goes ahead and removes the dot!

What's the deal? Is there a way to bypass this and create a folder with a trailing dot? Why does MS do these silly things? (I actually am pretty interested in the reasoning behind this)

EDIT: Google shows me some people that have files/folders ending in dots are having troubles deleting them, but doesn't tell me how to create them. (I'm not worried about deleting them afterwards - I can just use Linux, which handles them sanely, or whatever voodoo that those people out there are using)

Edited by somethingthatrhymes

13 answers to this question

Recommended Posts

  • 1
On 11/12/2007 at 4:10 PM, BudMan said:

I have to wonder WTF you would want to do this for?

http://msdn2.microsoft.com/en-us/library/aa365247.aspx

Naming a File

Naming Conventions

The following rules enable applications to create and process valid names for files and directories regardless of the file system:

# Do not end a file or directory name with a trailing space or a period. Although the underlying file system may support such names, the operating system does not. You can start a name with a period (.).

Windows is designed for manual point-and-click mechanics, which creates conflict and friction for those of us who develop software. Example: https://github.com/ropensci/drake/issues/1147. Here, the user does not deliberately try to create a file ending with a dot, but the software needs one anyway. This is just one of many edge cases caused by strange Windows file name restrictions. Fine for point-and-click Windows users,    frustrating for developers.

Edited by Will L
  • 0

I have to wonder WTF you would want to do this for?

http://msdn2.microsoft.com/en-us/library/aa365247.aspx

Naming a File

Naming Conventions

The following rules enable applications to create and process valid names for files and directories regardless of the file system:

# Do not end a file or directory name with a trailing space or a period. Although the underlying file system may support such names, the operating system does not. You can start a name with a period (.).

  • 0

Well basically I just want to do it for compatibility between OSes.

Although the underlying file system may support such names, the operating system does not.
But... WHY?!?!? It's _just another character_. There shouldn't be anything special about dots. In *nix, filenames can contain anything but NULL (yes, even \t, \n, etc.), since it's the string terminator. I'm just baffled by why dots are so bad.
  • 0
But... WHY?!?!? It's _just another character_. There shouldn't be anything special about dots. In *nix, filenames can contain anything but NULL (yes, even \t, \n, etc.), since it's the string terminator. I'm just baffled by why dots are so bad.

There are a great many characters that are not allowed including question marks, apostrophes and various slashes. Windows still has many of the original DOS limitations (something that now dates back multiple decades). It's just there. Live with it.

  • 0
1 hour ago, Will L said:

Windows is designed for manual point-and-click mechanics, which creates conflict and friction for those of us who develop software. Example: https://github.com/ropensci/drake/issues/1147. Here, the user does not deliberately try to create a file ending with a dot, but the software needs one anyway. This is just one of many edge cases caused by strange Windows file name restrictions. Fine for point-and-click Windows users,    frustrating for developers.

Only 12+ years too late. 

  • 0

 

On 24/01/2020 at 20:47, Will L said:

Windows is designed for manual point-and-click mechanics, which creates conflict and friction for those of us who develop software. Example: https://github.com/ropensci/drake/issues/1147. Here, the user does not deliberately try to create a file ending with a dot, but the software needs one anyway. This is just one of many edge cases caused by strange Windows file name restrictions. Fine for point-and-click Windows users,    frustrating for developers.

 

On 24/01/2020 at 22:13, adrynalyne said:

Only 12+ years too late. 

Google took me here 13+ years too late and I found Will's post helpful. Thanks

  • 0
20 minutes ago, adrynalyne said:

@Steven P.Why is this still open? I thought these things auto-close after a certain amount of time. I don’t recall the length, but I think 13 years is quite enough. 😜

Because people like you keep bumping it after someone else replies :) 

  • 0
6 minutes ago, Steven P. said:

Because people like you keep bumping it after someone else replies :) 

Cute. I’m just pointing out this isn’t working right.

Edit: Ah it’s so close to the 24th one year later. 
 

Still, you reply and still leave it open? 
 

Lazy. 

  • 0
  • 0
57 minutes ago, adrynalyne said:

Cute. I’m just pointing out this isn’t working right.

Edit: Ah it’s so close to the 24th one year later. 
 

Still, you reply and still leave it open? 
 

Lazy. 

Butthurt much? 😛 

  • 0
10 minutes ago, Steven P. said:

Butthurt much? 😛 

You set a great example. I tagged you because I thought something wasn’t working and you act like a...nah, I’ll avoid the warning. 
 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Owing to the nature of Windows feature enablement updates, it was distributed over Windows Update services as a complete system upgrade rather than as an ordinary cumulative update
    • Microsoft confirms Windows 11 26H2, urges IT admins to prepare for release by Usama Jawad Windows 11 typically follows an annual update cycle, but Microsoft recently broke that tradition a bit by releasing a "26H1" version in the first half of this year as a "scoped" build for select new silicon PCs only. This version was not available for customers using 24H2 and 25H2 builds, as Microsoft is busy preparing version 26H2 for them, confirmed officially for the first time. In a Windows IT Pro blog, Microsoft has urged IT admins to prepare for the upcoming release of Windows 11 version 26H2. The company has confirmed that this will be a small enablement package (eKB) that will simply light up certain disabled features that are already present in the operating system's code base. This means that the "refined" Windows update and deployment experience will be simpler and quicker, with minimal disruptions, as the feature update will simply toggle a few flags rather than performing a complete replacement. Microsoft has explained that this is all possible because the standard Windows 11 releases share the same servicing branch and hence, the same source code. However, this also means that Windows 11 26H1 users won't be able to upgrade to 26H2 as that is a different branch, but this is something we have known for a while now. Similar to previous annual feature updates, Windows 11 26H2 will offer the following support cycles: 24 months of support for Home, Pro, Pro EDU, and Pro for Workstations editions 36 months of support for Enterprise, Education, IoT Enterprise, and Enterprise Multi-session editions Microsoft has not confirmed a concrete release date for Windows 11 26H2, but noted that it is "coming soon". If we go by the ongoing release cadence, we can expect it to begin rolling out in early October 2026. As such, IT admins have been encouraged to begin validating Windows Insider releases in the Experimental Channel, plan rollout rings, and strategize the utilization of their existing deployment tools.
    • Windows 11 gets new audio improvements in the latest builds by Taras Buria Today's Experimental builds (26H1 and Future Platforms, formerly Canary) pack several audio-related improvements. If your device is enrolled in the Experimental Channel (26H1), you can download build 28120.2315, while those in the Future Platforms version have build 29613.1000 to try. Here is what is new in build 29613.1000: [Audio] Following up on our previous improvements, we’re making some more adjustments to Settings > System > Sounds based on your feedback. Namely, we’ve updated the “All sound devices” page so: You now have the ability to change default devices from this page. Each of the devices displayed on this page now has a little volume meter next to it to show if there is audio actively playing. We’ve adjusted the page design slightly so now you can filter whether you’re viewing input or output devices. We’ve added toggles so you can choose if you want to hide or show disabled, disconnected, and unplugged devices on this page. We’ve also updated the input and output audio properties page for devices in Settings to now include jack information for those that need it. And here is the changelog for build 28120.2315: This update includes a small number of minor bug fixes and improvements. [Accessibility] This update improves caption style responsiveness by redrawing captions immediately for caption style changes. If no current caption is visible, a sample caption string is displayed. [Audio] This update improves the reliability of the inbox HD Audio driver. You can find the official release notes for build 28120.2315 here and for build 29613.1000 here.
    • I agree with what I think you are saying, just not in the way you are saying it. Like any tool, the amount it represents your work is perorational to the effort you put into it. It is similar to why 2nd grade math students learning to add and subtract are not allowed to use calculators, but a high-school calculous student is. For the 2nd grader, that tool would completely replace the work they are doing, for the calculous student the same tool allows them to work far more effectively while in no way replacing their effort or knowable. If you spend 30 seconds writing a prompt, then the image that comes out is no more "yours" than if you found the same image with a Google Image search. However, many of these generative tools also support highly iterative processes that allow back and forth, and merging generated images with photos or human created images. I am sure you would agree that a human spending hours of time working on a project, even if AI was involved in the process, still reflects that human's work.
  • Recent Achievements

    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      575
    2. 2
      +Edouard
      189
    3. 3
      Michael Scrip
      79
    4. 4
      PsYcHoKiLLa
      78
    5. 5
      neufuse
      72
  • Tell a friend

    Love Neowin? Tell a friend!