Does anybody know what the syntax is to determine if a directory is a junction?
In Vista the c:\documents and settings is a junction.

Re: vbscript and Junctions by Richard

Richard
Tue Mar 18 19:47:24 CDT 2008


"rac8006" <rac8006@discussions.microsoft.com> wrote in message
news:B2E8A16F-235D-4FEC-9A6D-A68318A261A7@microsoft.com...
> Does anybody know what the syntax is to determine if a directory is a
> junction?
> In Vista the c:\documents and settings is a junction.

This link may help:

http://msdn2.microsoft.com/en-us/library/bb968829%28VS.85%29.aspx

From the link:

These junction points can be identified as follows:


a.. They have the FILE_ATTRIBUTE_REPARSE_POINT, FILE_ATTRIBUTE_HIDDEN, and
FILE_ATTRIBUTE_SYSTEM file attributes set.
b.. They also have their access control lists (ACLs) set to deny read
access to everyone.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--