DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Filenames with a leading dot?  (Read 13,496 times)

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
Filenames with a leading dot?
« on: September 30, 2011, 09:27 AM »
Hi Mouser.

I have a file named D:\Users\Highend\Tools\TrueCrypt\.MountExternalDrive.exe
It is a compiled .bat file that mounts my external TC drive.

If I type in .mou in FARR it shows this file as the first one but when I hit enter the drive isn't mounted but I get a windows explorer window that contains the D:\Users\Highend\Tools\TrueCrypt directory.

If I rename the file from .MountExternalDrive.exe to MountExternalDrive.exe (without the dot) and enter mou and hit enter again everything works as expected (no windows explorer window and the TC volume is mounted).

Why does FARR have a problem with filenames with a leading dot and more important: can you fix it?

Regards,
highend

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Filenames with a leading dot?
« Reply #1 on: September 30, 2011, 04:26 PM »
I will fix.
But any reason not to rename the file?

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
Re: Filenames with a leading dot?
« Reply #2 on: September 30, 2011, 04:32 PM »
Thanks.

I'm just used to it. My personal method to "pin" important files at the top of the file list in XYplorer. Doesn't require holding the shift button for other characters like "!" ;)

Regards,
highend

daddydave

  • test
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 867
    • Participated in NANY Challenge Once
Re: Filenames with a leading dot?
« Reply #3 on: September 30, 2011, 05:38 PM »
Interesting..
Unix configuration files use a lot of files that start with a dot, and I've seen that in the Windows ports, too. Can't think of one at the moment.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Filenames with a leading dot?
« Reply #4 on: September 30, 2011, 06:25 PM »
It's a lot of Java based, multi-platform, software that uses these 'prefixes' for configuration files, that are hidden by default on *nix OS's. Maven is the one that comes to mind immediately; have a look in your C:\Users\<username> directory. Being a developer, you'll likely find a few .-prefixed files there. And others create even .-prefixed directories holding even more user-specific stuff, I found .netbeans, .eclipse, .virtualbox, .google, to name just a few.

General consensus is to not use them for common user-files. And Windows Explorer really hates them anyway.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Filenames with a leading dot?
« Reply #5 on: October 02, 2011, 03:07 PM »
fixed will be in next release in next day or two.

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: Filenames with a leading dot?
« Reply #6 on: October 02, 2011, 04:06 PM »
fixed will be in next release in next day or two.

Try getting that kind of service from your usual software developer!  ;D :Thmbsup:

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: Filenames with a leading dot?
« Reply #7 on: October 02, 2011, 04:22 PM »
General consensus is to not use them for common user-files.

+1. Please do not use a dot as the first character in a file name.

[attach]
« Last Edit: October 02, 2011, 04:31 PM by 40hz »

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Filenames with a leading dot?
« Reply #8 on: October 02, 2011, 07:35 PM »
Pretty bad idea for regular files anyway, since a fair amount of software will break on those files.
- carpe noctem

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
Re: Filenames with a leading dot?
« Reply #9 on: October 02, 2011, 08:28 PM »
Quote
Pretty bad idea for regular files anyway, since a fair amount of software will break on those files.

Really? I stumbled upon ... zero ... in the last 16 years (since win 95) and I test new software every day...

@40hz

Win 7 environment only so no real need to change this.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Filenames with a leading dot?
« Reply #10 on: October 02, 2011, 10:37 PM »
Quote
Pretty bad idea for regular files anyway, since a fair amount of software will break on those files.

Really? I stumbled upon ... zero ... in the last 16 years (since win 95) and I test new software every day...
A lot (perhaps most) software will be able to open and save those files just fine. I've bumped into a fair amount of software with minor quirks, though - usually involved around "getting file extension from after the first '.' in filename", and often related to "tile type" detection. Usually not too big a deal, but an annoyance... and knowing what kind of path-splitting code we wrote back in the DOS days (and the mentality carried forward), I'd advice against leading-dot names for regular files.

Apart from that, Explorer won't let you create files or folders (or rename files or folders) "without a filename" before the "extension" :)
- carpe noctem

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
Re: Filenames with a leading dot?
« Reply #11 on: October 03, 2011, 07:17 AM »
Quote
Apart from that, Explorer won't let you create files or folders (or rename files or folders) "without a filename" before the "extension"

Correct but who on earth really uses it (there a literally dozens of file managers that do a 10x better job than windows explorer)? I can't even remember the last time I used it for file or folder management ;( Btw. on a command prompt you've always been able to do it (and I used that method in the old, ancient days (before TC, SpeedCommander and XYplorer)).

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Filenames with a leading dot?
« Reply #12 on: October 04, 2011, 06:16 PM »
Quote
Apart from that, Explorer won't let you create files or folders (or rename files or folders) "without a filename" before the "extension"
Correct but who on earth really uses it (there a literally dozens of file managers that do a 10x better job than windows explorer)?
My guess is +90% of all Windows users? :)

I'm on explorer2 myself, which does a lot of stuff better than standard explorer... but it does use standard explorer's "create new file/folder" methods.

I don't really see the point in using something that's even potentially troublesome, there's usable characters with even lower ASCII codes :)
- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=28200.0