Runas

First of all: marvellous product. All I try hoping to work, works and better.

Now I have a question. I created a limited user account on WinXP sp2, and want to do some file administration on program files as such (rename a dictionary file for Tortoise SVN). This is forbidden as limited user.

On my quest I stumbled upon XYplorer standalone. As I start this with runas and I find myself an environment able to do the renaming and probably more.
As I try to start DO from within DO with runas, this miracle doesn't happen.

Is there a way to start DO easily (preferable with a button) as a administrator?

You should be able to run Opus as Administrator on XP, it's just a question of making sure you do it properly:

  1. Full exit Opus. Don't just close the windows, but exit it. See this FAQ for details.

  2. Find dopus.exe using Explorer, hold shift and right-click it. Then use the Run As menu as usual.

That should start dopus.exe as Administrator.

(FWIW, on Vista this kind of stuff is built-in using UAC and you can run individual commands, or toggle individual lister windows, as administrator.)

Would be nice to do it from within.
I cannot find explorer anymore :wink:

Start -> Run -> explorer.exe

(If Opus is in Explorer replacement mode then double-clicking folders in Explorer will end up opening Opus which isn't ideal if you're aiming to navigate to dopus.exe to run it in a special way. You can work around that by nagivating using Explorer's tree, or typing the path into the address bar, or right-clicking folders and selecting Open instead of double-clicking them.)

You could also make a batch file or shorcut, maybe for your desktop or start menu, which uses runas.exe to launch dopus.exe as another user, saving you the hassle of lots of clicking.

If you know VBScript then you could also make an Opus button which runs a script which tells Opus to exit, waits for Opus to finish exiting, and then runs dopus.exe using runas.exe (or using ShellExecute and the Runas verb).

I've got some VBScript that stops Opus and waits for it to finish exiting (using WMI to wait until the dopus.exe exits) if it's any use to you. It also runs something (not Opus) as administrator. (It's an Opus button I have which shuts down Opus, copies a new version over under an administrator account, then restarts Opus under the normal user account.) If you don't know VBScript then it won't be useful though.