Admin Mode Indicator??

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Admin Mode Indicator??

Post by kodyman »

Is there a way I can display in the titlebar whether the instance I am running has Admin Rights or not?
I've looked in the manual and help and it says environment variables can be used. Looked at help>environment variables and don't see one that looks like it's it.

Thanks

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Admin Mode Indicator??

Post by Marco »

Put

Code: Select all

<get userrole>
somewhere in the title template.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

Thank you Marco. Just what I was looking for. :appl:

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

One other question while I'm at it.
Is there a list explaining which functions, commands, whatever require admin mode vs user mode to work properly?
I've found a couple on my own. Wondering how many there are and if there's a list I've overlooked somewhere or just trial and error?

Thanks again

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Admin Mode Indicator??

Post by Marco »

Mmh, not that I know of. Generally speaking it's all a matter of ACLs on NTFS. The need for requesting XY elevation depends on the permissions you have and what you want to do on a certain NTFS object.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

Sort of what I was afraid of. :cry:
More gray areas than black and white. So far, I mostly remember which way I need to be running when I want to do one or the other. It's not a major deal. I'll learn as time goes on.

Thanks again.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Admin Mode Indicator??

Post by Marco »

Do you have any particular scenario that could be worth investigating further?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

Nothing major at the moment. I'm not a power user like many here.
My two main ones:
Admin mode lets me copy between panes with drag/drop.
User mode lets me drag/drop a browser URL to a folder.
I don't know if there are others. Could be I'm already in the correct mode when I'm doing them.

When I have time I'm going to see if I can create a launchbar shortcut to start XYp in admin mode without the "Run As Admin" popup in between. Then I can click one or the other. I know it's just a couple of extra clicks for admin mode but would be easier.
I used to 'Minimize to tray on X close.' Now I just close it and bring it back up in the mode I need.

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

I'm resurrecting this old post since it is related to my orig question. I know depending on what I want to copy, sometimes I need to be in User Mode others Admin Mode.
This one has me confused though. Here's a sample video.
I'm in user mode and try to copy a file from one pane to another. Since I am in user mode I get a permissions pop-up. Even when I say OK, the copy doesn't happen. Note the progress indicator in the bottom right.
Anything I can do so when I give XY the permission the copy happens?

Thanks
XYP Copy GIF 2.gif
XYP Copy GIF 2.gif (777.45 KiB) Viewed 3693 times

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

Re: Admin Mode Indicator??

Post by admin »

Tested it, got the same prompts, but here it worked. I copied a file to C:\ using XYcopy without any issue.

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

Probably should have included I'm on Win7 Pro x64, running MSE and I have XYcopy.exe and XYplorer.exe (full paths) in the MSE excluded processes.

Anyone else running with MSE seeing this and have any suggestions? It's something else other than XY. Just having trouble figuring out what?

Thanks

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

Sill trying to figure out why I'm not able to copy in user mode after giving permission with the pop-up.
Took a look at Task Manager and found I had multiple instances of XYcopy.exe showing.
Multiple XYcopy Processes  - 001a.png
Multiple XYcopy Processes - 001a.png (61.15 KiB) Viewed 3632 times
I'm assuming the reason there were so many showing is I closed XY while the copy was still trying to complete. Correct?
I have XY set to save settings on close.
What happens when there are multiple XYcopy instances running at the same time?

Anyone have any suggestions of what Windows settings I can take a look at to allow XY to copy in user mode after giving Admin permission with the pop-up in User mode?

Thanks!

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

Re: Admin Mode Indicator??

Post by admin »

This should not happen at all -- even if you close XYplorer.exe. Cannot explain ATM.

kodyman
Posts: 222
Joined: 09 Apr 2011 04:05

Re: Admin Mode Indicator??

Post by kodyman »

admin wrote:This should not happen at all -- even if you close XYplorer.exe. Cannot explain ATM.
Thanks for looking into it when you get a chance.
Since no one else is commenting it must be something specific to my set-up.
If there is anything additional I can provide let me know. It gets a bit frustrating at times having to close XY if I'm in User mode and re-open in Admin mode to copy or move files.

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

Re: Admin Mode Indicator??

Post by admin »

If XYcopy is really the problem you could do the copy in the foreground: Untick Configuration > File Operations > Background Processing > Enable background processing

Post Reply