can't access protected folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
ckp
Posts: 56
Joined: 07 Oct 2016 17:05

can't access protected folders

Post 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.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can't access protected folders

Post by highend »

I get Windows popup
A "you don't have the necessary privileges" one?

Seems that it's not implemented in XY
One of my scripts helped you out? Please donate via Paypal

ckp
Posts: 56
Joined: 07 Oct 2016 17:05

Re: can't access protected folders

Post by ckp »

A "you don't have the necessary privileges" one?
>yes thats the one.

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't access protected folders

Post by admin »

Never seen this here in Win8.1. Does it exist there? Could I have a sceenshot of that dialog?

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can't access protected folders

Post by highend »

E.g.:

Code: Select all

%SystemDrive%\PerfLogs
Permission_denied.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't access protected folders

Post by admin »

Thanks, I see that here in Win8.1 as well.

OK, needs some research...

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't access protected folders

Post by admin »

...don't find anything at all. :? What's the exact English wording of this message?

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can't access protected folders

Post 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]
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

ckp
Posts: 56
Joined: 07 Oct 2016 17:05

Re: can't access protected folders

Post 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.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can't access protected folders

Post 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...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't access protected folders

Post by admin »

No luck up to now. Did not find any documentation about this dialog. :(

Wow, now I got it! :biggrin:

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can't access protected folders

Post by highend »

Link?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't access protected folders

Post 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.

admin
Site Admin
Posts: 66679
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't access protected folders

Post by admin »

OK, I now successfully unlocked C:\PerfLogs from XY.

Uhm, any idea how I can get it back to the original state? :whistle: I need to do some more testing...

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: can't access protected folders

Post 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"?

Post Reply