• 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

    • Why was it necessary to use AI to help write this article? Can we no longer do our own research or our own writing?
    • The auto industry really needs to update it's terminology so a software update isn't called a recall.
    • Anybody that thinks flying cars were possible are idiots. Everyone would basically need a pilot licence, can you imagine how insane and dangerous that would be, people can barely handle driving on land safely right now.
    • Microsoft Edge 149.0.4022.80 by Razvan Serea Microsoft Edge is a super fast and secure web browser from Microsoft. It works on almost any device, including PCs, iPhones and Androids. It keeps you safe online, protects your privacy, and lets you browse the web quickly. You can even use it on all your devices and keep your browsing history and favorites synced up. Built on the same technology as Chrome, Microsoft Edge has additional built-in features like Startup boost and Sleeping tabs, which boost your browsing experience with world class performance and speed that are optimized to work best with Windows. Microsoft Edge security and privacy features such as Microsoft Defender SmartScreen, Password Monitor, InPrivate search, and Kids Mode help keep you and your loved ones protected and secure online. Microsoft Edge has features to keep both you and your family protected. Enable content filters and access activity reports with your Microsoft Family Safety account and experience a kid-friendly web with Kids Mode. The new Microsoft Edge is now compatible with your favorite extensions, so it’s easy to personalize your browsing experience. Microsoft Edge 149.0.4022.80 changelog: Fixes Fixed an issue that prevented QR code generation from working. Feature updates Intune MAM Protected Downloads. The protected downloads feature for Intune MAM will now save downloaded files to the Documents > Microsoft Edge > Downloads folder in OneDrive. Extensions monitoring in the Edge management service. The Microsoft Edge management service now allows admins to gain visibility into extensions installed across their managed users. From the extensions monitoring page, admins can see which extensions have been installed as well as manage user requests for blocked extensions. For more information, see Microsoft Edge Extensions Monitoring. Validate Edge builds early with enterprise preview. Enterprise preview provides a simpler way for admins to flight pre-release Edge builds to their users. To reduce friction and bolster usage, users will receive pre-release builds directly inside of their Stable Edge application. Admins can allow users to easily opt-out of the preview experience, using built-in rollback to switch between their pre-release and stable channels with ease. Microsoft 365 admin center users can configure the feature, view their flighting population, and receive personalized recommendations all in one place. For more information, see Get started with Enterprise Preview in Microsoft Edge. Download: Microsoft Edge (64-bit) | 193.0 MB (Freeware) Download: Microsoft Edge (32-bit) | 170.0 MB Download: Microsoft Edge (ARM64) | 188.0 MB View: Microsoft Edge Website | Release History Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • The machines are starting to fight back any way they can.
  • Recent Achievements

    • 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
    • First Post
      BizSAR earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      598
    2. 2
      +Edouard
      189
    3. 3
      PsYcHoKiLLa
      78
    4. 4
      Michael Scrip
      76
    5. 5
      Steven P.
      69
  • Tell a friend

    Love Neowin? Tell a friend!