From: Karl E. Peterson on
Kevin Provance wrote:
> Dude, I avoid Dir like the plague (opting of course for it's API
> equivilants). It's just so unreliable on so many levels.

Understanding goes a long way in alleviating fear. ;-)

> I can however address the vbAlias question. It's a Macintosh thing, more or
> less. Filenames under that OS can be, well..aliased. I suspect the reason
> we see it in VB is backwards compatibility for the Mac version of Office.
> That would be my guess. Under Windows it has no use whatsoever.

Ahhhhh... Almost certainly, that'd be it. There used to be other constants of
similar origin, though now I can't immediately think of any. Thanks!
--
..NET: It's About Trust!
http://vfred.mvps.org


From: Karl E. Peterson on
Tony Proctor wrote:
> Macintosh thing? NTFS supports filename aliases, as does UNIX (see soft/hard
> links), VMS, and I'm sure other O/S's too. In other words, the concept has
> been around a long time

Nothing that Dir might notice, though, right?
--
..NET: It's About Trust!
http://vfred.mvps.org


From: Karl E. Peterson on
Larry Serflaten wrote:
> "Karl E. Peterson" <karl(a)mvps.org> wrote
>
>> I was trying to codify the rules VB uses for including results in a Dir loop,
>> based on what attributes are passed to it. This is the best I've come up with so
>> far:
>
>> Anyone see any "issues" with that? A better way to code it? Do note that the
>> code above is not strictly in accordance with the documentation. For instance,
>> the docs say:
>
> What if the sought attribute is for a Volume lable (8)? How are you obtaining the
> found attribute?

I was just trying to codify exactly what VB does, for my own satisfaction. In that
case, if the user requests the volume label *and* nothing else, that's what's
sought. It would happen before this little routine came into play. If this routine
has been called, there were attributes other than that which were requested.

> I would think you could simplfy that all to some boolean
> expression....

Serious? I'd like to see that.

>> Also, completely off-base question, wth's vbAlias in the VbFileAttribute enum?
>
> Links and shortcuts?

Good question! I didn't think to try those.

OMG... LOL! Try this in the Immediate window:

?dir("*.*", vbAlias)

I guess that answers that!
--
..NET: It's About Trust!
http://vfred.mvps.org


From: Kevin Provance on
| Understanding goes a long way in alleviating fear. ;-)

::gazes into crystal ball::

I see the topic for your next article? <g>

I look forward to it. :-)

- Kev


From: Karl E. Peterson on
Kevin Provance wrote:
>| Understanding goes a long way in alleviating fear. ;-)
>
>::gazes into crystal ball::
>
> I see the topic for your next article? <g>
>
> I look forward to it. :-)

That thread on using the Unicode Find* functions got me thinking about it. First ya
gotta explain what's wrong with what we got, and then, ..., eh? And, knowing this
place, if I am under a misunderstanding of how VB works, I'll find out *real* quick
by posting it here! ;-)
--
..NET: It's About Trust!
http://vfred.mvps.org