Windows associate to TC internal associate

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
aLieN_Enemy
Junior Member
Junior Member
Posts: 11
Joined: 2009-01-09, 08:38 UTC
Location: Washington, D.C.

Windows associate to TC internal associate

Post by *aLieN_Enemy »

I'd like to include the following registry code in TC's internal Associate menu. How can I do that? please note that it requires admin access.

Code: Select all

[HKEY_CLASSES_ROOT\*\shell\Take Ownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can use my Sudo tool for eleation request. So, Files - Internal associations, add filter * and add new context menu action: New..., type any name and paste your command as a command:

Code: Select all

"%COMMANDER_PATH%\Sudo.exe" cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F
But internal associations have a sad limitation: if you have different filters, you have to add such context menu action for every filter, TC doesn't allow to combine items frol different matching filters. So I would suggest to call a batch from buttonbar button or hotkey. E.g. like this one.
Post Reply