I went to the trouble of e3nabling the administrator account login. Now
either with the administrator login or using the run as administrator I get
an access denied when trying to do a fs.GetFolder(filespec) when the
filespace contains "c:\windows\Live KernelReports" If I don't put the on
error statement the script gets the access denied error. With the on error
it just skips the directory. I can't figure how to get the on error
statement to allow me to display the filespec when it gets the error.
All I'm tryuing to do is run a vbscript that will give the amount of
diskspace that a folder contains. But it skips some folders apperantly
because of the access denied.
P.S. It would be nive if one count test the filespec to see if it is a
junction. Then you could skip trying to do the GetFolderSize and display
that it is a junction.
"Jimmy Brush" wrote:
<span style="color:blue">
> Hello,
>
> There are junctions that reside in the users folder.
>
> For example, "all users" and "default user" are not really folders and thus
> do not contain any files.
>
> Ghosted folder + shortcut arrow + "access denied" = junction.
>
> All users is now: c
rogramdata
> default user is now: c:usersdefault
>
> If you are handy with a command prompt, issuing the command 'dir /al' will
> show you a list of the junctions in the current directory, and where they
> point to in brackets.
>
> For what it's worth, I disagree with this behavior myself, and tried to get
> Microsoft to provide a better error message or an "automatic redirect" to
> the folder that the junction points to durring the beta.
>
> If you are having trouble with files or folders that are not junctions,
> please post the specific location, and I will do my best to assist you.
>
> --
> - JB
> Microsoft MVP Windows Shell/User
>
> "Al" <Al@discussions.microsoft.com> wrote in message
> news:59577B48-A09B-4747-81DD-CEB8D1A55E41@microsoft.com...<span style="color:green">
> > Thanks, Jimmy, I had already discovered some information regarding this,
> > however, I'm still curious as to why I don't get full access to the USERS
> > folder, for example. If this is the location that Documents and Settings
> > now
> > points to, and XP gave unfettered access to these folders, why do I still
> > have trouble viewing files in some of the USERS subfolders? Where can I
> > find
> > complete documentation of this major change in OS security behavior. The
> > Vista Help and Support is woefully lacking in providing Admin-type
> > information about this sort of stuff and having to Google (excuse me, Live
> > Search??) for information is pretty silly.
> >
> > Al
> >
> > "Jimmy Brush" wrote:
> ><span style="color:darkred">
> >> Hello,
> >>
> >> You are most likely talking about the Vista application compatability
> >> "junctions" - they look like shortcuts to folders, with a shortcut arrow
> >> and
> >> a dimmed/ghosted folder icon. For example, "My Documents", "My Pictures",
> >> "Documents and Settings".
> >>
> >> These are not really folders, but pointers to other locations on your
> >> computer that some apps need to use under certain scenarios. For example,
> >> Documents and Settings points to the Users folder.
> >>
> >> You can't browse into these junctions. The reasoning isn't to lock you
> >> out,
> >> but to keep applications from thinking these are real folders and getting
> >> confused.
> >>
> >> --
> >> - JB
> >> Microsoft MVP Windows Shell/User
> >>
> >> "Al" <Al@discussions.microsoft.com> wrote in message
> >> news:BE3968CF-CAC2-4BB5-8094-620EEB5EEEA3@microsoft.com...
> >> > New to Vista (Ultimate). Why, when I'm logged in as Administrator, are
> >> > there
> >> > folders on the disk that produce an "Access denied" error when I try to
> >> > browse them? I thought the purpose of the Administrator account was to
> >> > provide full and complete access to the computer including any
> >> > folder/file
> >> > on
> >> > the disk regardless of creator/owner status. This is new (and very
> >> > annoying)
> >> > behavior since XP Pro. What settings need to be tweaked?
> >> >
> >> > TIA.
> >> </span></span>
> </span>