Re: FindFirstFile and underscore

From: Ulrich Korndoerfer (ulrich_wants_nospam_at_prosource.de)
Date: 08/10/04


Date: Tue, 10 Aug 2004 18:57:25 +0200

Hi,

Randy Birch schrieb:
>
> Just because you can force a file to start with a . doesn't mean it's a
> normal or supported practice.

In the Unix world a leading dot for files and/or directories is quite
common. I personally use some unix tools like apache, analog (an apache
log analyzer) or unison (a file synchronization/backup tool), which all
may use leading dots for files and/or directories. QT from Trolltech
(GUI toolkit and framework for OS independent application development)
uses dotprefixed folders.

There are many more tools which come from the unix world and are
available for WIN oses too. But "native" WIN apps sometimes use
dotprefixed names too.

Sharp develop (an open source C# development environment) uses them.
Borlands JBuilder (Java programming IDE) uses a directory called
".jbuilder".
MS .NET products sometimes have files/folders/links with a dot in front
(like the ".NET Framework Config" folder):-)

I don't think that it is that unusual using leading dots for file system
item names and therefore should be taken into account when doing file
system item searches. And it is supported by the OS and perfectly legal.

In the after DOS days a file system item name is just a series of
characters from a given character set, whith each character in the set
having lost any special meaning and may be freely used. OK, this last
dot in a file system item name still has a, but vague, meaning of being
the separator of the formerly so called file extension from the rest of
the name, but you cannot really count on it being that, nowadays.

> rather than test for the ASC code for the dot.

BTW, this is slower (if used with VB strings) than doing a simple
comparison using the equal operator ;-).

-- 
Ulrich Korndoerfer
VB tips, helpers, solutions -> http://www.proSource.de/Downloads/


Relevant Pages

  • Re: Phiw and Ben
    ... is there any character worth their salt aside from Dot? ... worth watching, but utterly marginalized. ... Not for a second would Dot refuse to take care of her ailing hubby at home - it goes against everything we've ever known about her character over the last 23 years. ...
    (rec.arts.tv.uk.eastenders)
  • Re: Code to check if a valid e-mail address was entered
    ... Function Valid_Email(E_Address As String) As Boolean ... ' Note that the part after the @ sign must contain at least one dot, ... ' at least one other character following it, ... Dim TString As String ...
    (microsoft.public.access.modulesdaovba)
  • Re: read vcds in fedora-> cdfs??!
    ... CDfs is a file system for Linux systems that `exports' all tracks and boot ... ISO and boot images), copied, played... ... didierbe at sps dot nus dot edu dot sg ...
    (Fedora)
  • RE: What exactly is this simple regex doing?
    ... the regex to be matching anything except ... You're by saying that the dot in a class is not ... ||>> truncates an absolute url from first character to the one before ...
    (perl.beginners)
  • Re: how to get the file extension from a pathname
    ... want to extract the extension of a file as a String.Suppose the ... represents one of the predefined character classes (any ... (full-stop, period, dot, decimal, etc.) ... single backslash would be seen as an illegal escape character: ...
    (comp.lang.java.programmer)