Elevating XYplorer

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Elevating XYplorer

Post by Enternal »

Probably something everyone already knows but just in case.

One of the problems that I run into frequently is whenever I need to paste a junction link or do certain things, I can't do them because XYplorer is not elevated. To solve that, I went to http://code.kliu.org/misc/elevate/ and extracted elevate.exe into my <xypath> folder (so it's sitting together with XYplorer.exe) and then create a catalog item (or CTB) using the code:

Code: Select all

Run """<xypath>\Elevate.exe"" ""<xy>"" /ini=""<xyini>"" ""<curpath>""";
And problem solved!

EDIT (July 9, 2014): Fixed an error I made when posting it and also a little fine tuning.
Last edited by Enternal on 10 Jul 2014 06:44, edited 2 times in total.

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

Re: Elevating XYplorer

Post by Marco »

I used that utility myself for a very long time, so I can recommend it. Extremely light and does what it says smoothly, especially concerning commands with many parameters.

I myself have always an elevated instance of XY in the tray, just in case (like you) I need to create a junction or something else. However since recently I do the elevation with this utility, http://rammichael.com/winapiexec , which is even smaller and low-level. In fact, the command to launch something elevated is longer, like

Code: Select all

winapiexec shell32.dll@ShellExecuteW NULL "runas" "XYplorer" "/win=tray" NULL 7
but with a cool addition: the resulting UAC prompt is minimized in the taskbar, not interfering (in my case) with the startup process.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Elevating XYplorer

Post by bdeshi »

winapiexec Dev wrote:winapiexec is a small tool that allows you to run WinAPI functions through command line parameters.
Wow. Where was this gem hiding? Great find!! :appl:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Elevating XYplorer

Post by Enternal »

Woah! What is this tool?! It's very powerful and directly allows you to use Windows API! Although it might be a bit too powerful for me since I have not really messed around with Win APIs before. Still a nice find! Thanks!

Post Reply