Page 1 of 3
can't access protected folders
Posted: 01 Feb 2017 22:08
by ckp
if i try to access a folder (i am an admin user on Win 10) in xyplorer it just won't show me what is there and says i don't have access.
i have to use windows explorer to navigate there, at which time I get Windows popup that i click on and it then lets me in. only after doing that, i can go to that location with xyplorer. so, for such folder restrictions, why doesn't xyplorer ask me if i want to enter that folder like windows explorer does? is there a setting for this in xyplorer? i do not run xyplorer as admin.
Re: can't access protected folders
Posted: 01 Feb 2017 22:18
by highend
I get Windows popup
A "you don't have the necessary privileges" one?
Seems that it's not implemented in XY
Re: can't access protected folders
Posted: 01 Feb 2017 22:31
by ckp
A "you don't have the necessary privileges" one?
>yes thats the one.
Re: can't access protected folders
Posted: 02 Feb 2017 09:51
by admin
Never seen this here in Win8.1. Does it exist there? Could I have a sceenshot of that dialog?
Re: can't access protected folders
Posted: 02 Feb 2017 10:05
by highend
E.g.:
Permission_denied.png
Re: can't access protected folders
Posted: 02 Feb 2017 11:02
by admin
Thanks, I see that here in Win8.1 as well.
OK, needs some research...
Re: can't access protected folders
Posted: 02 Feb 2017 11:06
by admin
...don't find anything at all.

What's the exact English wording of this message?
Re: can't access protected folders
Posted: 02 Feb 2017 11:20
by highend
permissions.png
[Window Title]
PerfLogs
[Main Instruction]
You don't currently have permission to access this folder.
[Content]
Click Continue to permanently get access to this folder.
[Continue] [Cancel]
Re: can't access protected folders
Posted: 02 Feb 2017 22:53
by ckp
i'm pretty sure when you click Continue on that popup, that the permissions get changed, which is also why you can go there using xyplorer after doing that.
Re: can't access protected folders
Posted: 02 Feb 2017 23:03
by highend
Ofc. Windows gives the current user the necessary permissions to access that folder.
This could be scripted as well (store the acls of that folder with icacls, confirm the
dialog, store the acls again, compare both files -> Create a icacls call to replicate the behavior (only once of course!))
but this would be a bit of overkill if Windows provides any API to do the same...
Re: can't access protected folders
Posted: 03 Feb 2017 09:29
by admin
No luck up to now. Did not find any documentation about this dialog. 
Wow, now I got it!

Re: can't access protected folders
Posted: 03 Feb 2017 09:55
by highend
Link?
Re: can't access protected folders
Posted: 03 Feb 2017 10:06
by admin
I could create that prompt simply by calling ShellExecute on that folder. But there's a problem. The call is asynchronous. This is getting complex. I will try a little more but will postpone it to the future if I remain unsuccessful.
Re: can't access protected folders
Posted: 03 Feb 2017 10:15
by admin
OK, I now successfully unlocked C:\PerfLogs from XY.
Uhm, any idea how I can get it back to the original state?

I need to do some more testing...
Re: can't access protected folders
Posted: 03 Feb 2017 10:51
by PeterH
Hm - just how it sounds:
The text says "um dauerhaft Zugriff Zu erhalten" / "to permanently get access".
So if it means what it says it is expected to be "permanent"?