Feature request: An option to elevate rights when archiving

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Feature request: An option to elevate rights when archiving

Post by *speller2 »

Hi!
Sometime it is needed to make an archive inside a folder such as Program Files, but it is impossible when TC is not with elevated rights (Run As Administrator). So, think it will be very useful to have a possibility to run archiver with elevated rights to make archive without making it somewhere and then copying it to protected folder.
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Usually TC uses plugins for packing, so it is impossible to elevate in such case. However I can suggest you to make a button to open new elevated TC instance with same folders in both panels:

Code: Select all

Command: "%COMMANDER_PATH%\Sudo.exe" "%COMMANDER_PATH%\TOTALCMD.exe"
Parameters: %Z/N %X"%P" "%T"
So you only need to click this button and then start packing as usual in new TC instance. Also you can do any thing that requires elevation in such way (use MRT, copy with permissions, sync, edit-n-compare etc). You can find Sudo tool in my signature.


Also, if you're using external packer tools for packing, you may create packing button and run it elevated (using Sudo or via 'As Administrator' in button's context menu).
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Post by *speller2 »

Thanks for explanation :)

But, your way is too long way ) I wish a feature such as "As Admin" button when copying a file, when TC tries to create a file, got error, and ask the user to try this operation with elevated rights. With external packers TC can try to create a file with provided file name, on error show dialog with buttons "As Admin" and "Cancel", on success delete this file and call extarnal packer.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Why do you need to create an archive in "Program files"? This is quite unusual - so unusual that I haven't even considered to add such a function. TC currently only supports _unpacking_ to such folders. It's done by first unpacking the files to TEMP, and then moving them to the protected folder. This could be done with packing too.
Author of Total Commander
https://www.ghisler.com
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Post by *speller2 »

2ghisler(Author)
In this case I tried to make fast copy of the OpenVPN config folder before replacing it with another settings, copied from a folder, where I saved them because I got them by email. I tried to press Alt+Ctrl+F5 to make a copy and failed. And needed to 1) open another tab 2) select a temporary folder 3) make archive there 4) copy archive to program folder 5) delete archive in temporary folder 6) close tab with temporary folder. Too many operations for one simple archive )
Hope you add suggested feature in future )
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You may simply use some temporary folder for such cases, or start elevated TC instance.
Post Reply