topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 3:24 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Filenames with a leading dot?  (Read 10543 times)

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
    • View Profile
    • Donate to Member
Filenames with a leading dot?
« on: September 30, 2011, 04: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,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #1 on: September 30, 2011, 11:26 AM »
I will fix.
But any reason not to rename the file?

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #2 on: September 30, 2011, 11:32 AM »
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

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 867
  • test
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #3 on: September 30, 2011, 12: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,629
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #4 on: September 30, 2011, 01: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.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #5 on: October 02, 2011, 10:07 AM »
fixed will be in next release in next day or two.

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,859
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #6 on: October 02, 2011, 11:06 AM »
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,859
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #7 on: October 02, 2011, 11:22 AM »
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.

BOFHsm.gif

I regularly deal with mixed Nix/Win environments. I turn into the BOFH anytime I run into files that are unnecessarily prefixed with a dot. Especially if they're your regular user-created files. I have been known to send a politely worded e-mail whenever I encounter a user doing that for the first time. I will also send a more sharply-worded message if the user persists. But after that, offending files tend to get deleted without further warning. Not something I do lightly.

« Last Edit: October 02, 2011, 11:31 AM by 40hz »

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #8 on: October 02, 2011, 02: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
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #9 on: October 02, 2011, 03:28 PM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #10 on: October 02, 2011, 05:37 PM »
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
    • View Profile
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #11 on: October 03, 2011, 02:17 AM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Filenames with a leading dot?
« Reply #12 on: October 04, 2011, 01:16 PM »
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