Different behaviour when unpack to write-protected folder

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Different behaviour when unpack to write-protected folder

Post by *MVV »

When I try to unpack the whole archive or some files into write-protected folder, TC behaviour depends on target folder existence:

When I try to unpack to existing folder (I type new target path or choose unpack to dir with archive name), TC says folder is write-protected and asks to unpack as admin.

But when I want to unpack to a new folder, TC just does labour of Sisyphus - it shows the progress window, it shows how files being unpacked, BUT no 'unpack as admin' dialog shows and no files are placed into target dir because it doesn't exist.

Expected behaviour: when user tries to unpack to a non-existing folder and TC can't create it because of write-protection, TC should ask user to perform an operation as admin (to create target folder and to place unpacked files into it).

The one idea of this topic - to ask user for folder creation as admin before unpacking because the rest of the unpack process TC does well.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't understand your report. Here is what I tried:
1. Place cursor on zip file
2. Press Alt+F9
3. Change target dir from c:\somedir to c:\somedir\new

-> TC creates subdir "new" and unpacks files to it.

What are you doing differently?
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Confirmed in TC 7.5 pb5.

2ghisler(Author)
Create a new directory c:\test\readonly,
then change your own access there to read only (and Admin's to full access; removing all other access rights):

Code: Select all

cacls c:\test\readonly /g your_username:R Administrator:F
Now use F9 to unpack from zip:
target = c:\test\readonly: TC wrote:Access denied!
[OK] [As Administrator]
target = c:\test\readonly\new: TC wrote:Error writing (path\filename)!
[OK] [Cancel]
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - indeed this isn't currently supported, sorry. Maybe in a later version.
Author of Total Commander
https://www.ghisler.com
Post Reply