Page 1 of 1

Elevating XYplorer

Posted: 09 Jul 2014 10:28
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.

Re: Elevating XYplorer

Posted: 09 Jul 2014 10:47
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.

Re: Elevating XYplorer

Posted: 09 Jul 2014 13:47
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:

Re: Elevating XYplorer

Posted: 09 Jul 2014 21:59
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!