Custom context menu entry does not show in DOpus

Hi,

I customized the context menu of explorer by adding a "Open Powershell here (Admin)". It shows up in Windows file explorer but it doesn't show up in DOpus. I did the modifications in the registry (like in the last two screenshots - I also did this for the "File" reg key and for the "Directory\Background" reg key)

Thanks,
W@ng

Probably because you've called the verb RunAs (I'm guessing that's a hack to make Explorer run it elevated?)

You can edit the Opus context menu via Settings > Customize Toolbars > Context Menus > Lister Context. (In that, you'll see a placeholder item which inserts the registry values you're looking at, or most of them at least...)

The Opus command for opening PowerShell elevated can be found in the default Tools menu, and is:

CLI DOSPROMPT=admin,powershell

If you add that to the Lister Context menu it should do what you want.


Related threads about using "runas" as a kludge to elevate things in Explorer, vs Opus (where we have @admin and other ways to elevate things properly, without messing up standard verbs):

Thanks, LEO, this works.

However, the Powershell window has a red background when opened by "CLI DOSPROMPT=admin,powershell". Is there a way to set this back to default (blue)?

See the DOSPROMPT=color and DOSPROMPT=nocolor arguments:

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/CLI_Command.htm

Hi Leo,
the same issue here, however I added an entry to the context menu of file instead of directory. Unfortunately I cannot find a corresponding item in the settings you mentioned. How can I make my original entry in the context menu visible in DO or add a new one?
Best regards - Ulrich

You're trying to open a PowerShell window for a file instead of a directory?

Which item do you mean? Settings > Customize Toolbars? If your config dates back a long time then it might be called Settings > Customize. Or if you have deleted the menu item, or turned off the toolbar, or loaded someone else's custom toolbars, it might be different.