Gain admin rights

Features wanted...
grindax

Re: Gain admin rights

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 18:34, edited 1 time in total.

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

Re: Gain admin rights

Post by admin »

Uh, why are you posting this?

grindax

Re: Gain admin rights

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 18:34, edited 1 time in total.

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

Re: Gain admin rights

Post by admin »

grindax wrote:
admin wrote:Uh, why are you posting this?
Because you pivoted the thread to discussing file manager preference.
No, that wasn't my intention. teppups is a troll on a mission to talk down XY and talk up DO. I'd like to know what's motivating folks like him, and I just tried to get something meaningful out of him. Failure. Well, I will spare the weed for now.

Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Gain admin rights

Post by Filehero »

admin wrote:Well, I will spare the weed for now.
:D

Well, I always thought a troll's mission is nothing but to troll. I took me some years, but now I've learned how to resist temptations - even if the forum system doesn't offer an ignore function. :mrgreen:

Back to topic now.

Code: Select all

v10.10.0103 - 2011-08-23 20:52
    * Custom Copy Blacklist: Now you have to append an * (asterisk) to 
      mark a folder as being blacklisted including all subfolders.
      An example using recursive and non-recursive paths:
        %HOMEDRIVE%
        %ALLUSERSPROFILE%*
        %ProgramFiles%*
        %ProgramFiles(x86)%*
        %WinDir%*
After my first tests, this works fine so far. :)

Question to Win experts: what are the attributes to check for in order to make a complete list of excluded paths for a given drive (by running any sort of script technology)? Is it just access rights? Which ones?

More questions: how tightly coupled is this blacklist to Custom Copy? Or the other way round: could it be dedicated to other XY commands as well with "little" effort?
Edit Stupid since there is no generic equivalent for "shell copy" like "shell function". The naive idea was to make a white list of commands requiring elevation and elevate the instance once they get called.
:oops:


Cheers,
Filehero

teppups

Re: Gain admin rights

Post by teppups »

None of what I posted on the BdJ thread was trolling, they were completely legitimate questions that in my view you failed to answer satisfactorily.
How can it be trolling to point out the truth?

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

Re: Gain admin rights

Post by admin »

teppups wrote:None of what I posted on the BdJ thread was trolling, they were completely legitimate questions that in my view you failed to answer satisfactorily.
How can it be trolling to point out the truth?
Please answer my question first: http://www.xyplorer.com/xyfc/memberlist ... rofile&u=2

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

Re: Gain admin rights

Post by admin »

teppups wrote:Copy isn't the only operation a file manager needs to be able to do. E.g. use XY unelevated to create a new folder in C:\Program Files. Big fail.
That's actually an interesting observation. You have any idea how this could be achieved?

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

Re: Gain admin rights

Post by Marco »

Maybe they installed a service that doesn't show any UAC prompt, much life FF and TB with their update service...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

teppups

Re: Gain admin rights

Post by teppups »

Marco wrote:Maybe they installed a service that doesn't show any UAC prompt, much life FF and TB with their update service...
No it shows a UAC prompt, it just seems to be handled internally (like Explorer, rather than relying on Explorer which is what XY seems to do).

Chris21
Posts: 38
Joined: 16 Aug 2012 00:21

Re: Gain admin rights

Post by Chris21 »

I had to notice that just creating an elevated shortcut isn't the solution because it isn't the shortcut that gets marked as elevated but the executable xyplorer.exe itself. Therefore any instance will be started in elevated mode.

Chris21
Posts: 38
Joined: 16 Aug 2012 00:21

Re: Gain admin rights

Post by Chris21 »

This could be a solution that can be done over the time:
Develop a seperate file operations process that can be elevated when needed. This process will be executed for file operations like create, copy, delete, ... .
In the settings you state that custom copy can be executed in a seperate process. So it should already be possible to execute it with admin privileges where needed or?

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

Re: Gain admin rights

Post by Marco »

Try this http://code.kliu.org/misc/elevate/ (that's what I use)
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Gain admin rights

Post by admin »

Chris21 wrote:This could be a solution that can be done over the time:
Develop a seperate file operations process that can be elevated when needed. This process will be executed for file operations like create, copy, delete, ... .
In the settings you state that custom copy can be executed in a seperate process. So it should already be possible to execute it with admin privileges where needed or?
Yes, that would surely work as plan B. I'm currently still researching cooler options.

Chris21
Posts: 38
Joined: 16 Aug 2012 00:21

Re: Gain admin rights

Post by Chris21 »

An addition to this:
It would be also nice to open the command prompt with admin privileges.

Post Reply