Hello,
I have the following in my wincmd.ini file :
[Extensions]
bmp=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.bmp
gif=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.gif
jpg=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.jpg
jpeg=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.jpeg
png=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.png
tif=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.tif
tiff=%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.tiff
I want to start Imagine as admin so that it will use the ini file in the program directory.
So I changed it to this :
[Extensions]
bmp=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.bmp
gif=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.gif
jpg=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.jpg
jpeg=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.jpeg
png=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.png
tif=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.tif
tiff=*%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.tiff
But that doesn't work.
Is it even possible to start a associated program as Admin ?
Start a associated program als Admin.
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Start a associated program als Admin.
The * does nothing here, it's only for the button bar and TC start menu.
You could try with a tool like "elevate" - it's open source:
http://code.kliu.org/misc/elevate/
You could try with a tool like "elevate" - it's open source:
http://code.kliu.org/misc/elevate/
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Start a associated program als Admin.
You can also use my Sudo tool, it accepts target command line as is, without any modification:
But if you need to start many programs as admin, it may be easier to open elevated TC session.
Also, you can just start Imagine via a buttonbar button or a hotkey+user command, in such case you don't need to create a bunch of associations, it will take any file type:
As for me, I use F4Menu tool for the ability of editing different files by single F4 key, and I've added some extra tools to its menu, one of them just starts F4Menu as admin, so I can use any editor as admin when I need, and it is very handy.
Finally, you can add a context menu item for opening image file types in elevated Imagine using Internal associations. Just add an action and select it from context menu:
Please note that it may be not too convenient if you already have internal associations that partially match these file types because unforunately TC still can't merge context menus for file types appearing in different internal association entries so you may have to add this item to multiple entries.
Code: Select all
%COMMANDER_PATH%\Sudo.exe %COMMANDER_PATH%\Tools\Imagine\Imagine64.exe ^.bmp
Also, you can just start Imagine via a buttonbar button or a hotkey+user command, in such case you don't need to create a bunch of associations, it will take any file type:
Code: Select all
Command: *%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe
Parameters: %P%N
Finally, you can add a context menu item for opening image file types in elevated Imagine using Internal associations. Just add an action and select it from context menu:
Code: Select all
Action: Imagine (sudo)
Command: "%COMMANDER_PATH%\Sudo.exe" "%COMMANDER_PATH%\Tools\Imagine\Imagine64.exe" "%1"
Re: Start a associated program als Admin.
Thanks for the replies. I will use the sudo tool.
Re: Start a associated program als Admin.
Thank you for the answer.ghisler(Author) wrote: 2018-12-17, 14:40 UTC The * does nothing here, it's only for the button bar and TC start menu.
You could try with a tool like "elevate" - it's open source:
http://code.kliu.org/misc/elevate/
Are there any plans that * is going to be implemented for the associations ?