Help with elevated Internal associations actions

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Mummu
Junior Member
Junior Member
Posts: 12
Joined: 2009-06-25, 15:05 UTC

Help with elevated Internal associations actions

Post by *Mummu »

I searched the forum but didn't find anything about this.

My goal is to make a few context menu commands for all files and folders, but one of them needs to be elevated.

So far this works fine:

Code: Select all

Filter28=*
Filter28_test1=cmd.exe /c something1 "%1" 
Filter28_test2=cmd.exe /c something2 "%1" 
Under XP it works fine, but on win7 i need elevated rights for this to work.
How to make the command run with elevated rights?

i tried to add * before it, but then it didnt show in the context menu
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Try using a tool called sudo: http://www.totalcmd.net/plugring/Sudo.html. Download it somewhere and change your internal commands to something like:

Code: Select all

Filter28_test1=sudo.exe "cmd.exe" "/c something "%1""
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Sudo asks for credentials under Windows XP even under administrator accounts so it may be not so convenient here. But if Windows 7 is the only used system, it will work fine.
User avatar
Mummu
Junior Member
Junior Member
Posts: 12
Joined: 2009-06-25, 15:05 UTC

Post by *Mummu »

Thanks. Sudo did the trick, but it would be awesome if we had it internal, like with the button bar :)
Post Reply