Page 1 of 1

More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-09-29, 17:12 UTC
by SUKER
More specifically - the option to rename and auto-rename the unpacked file.
In my work I frequently need to check logs from many different archives. All logs in archives have the same file name log.txt.
I enter archive, select file log.txt, press F3 and examine file...
Then I need to check another archive (and compare with previous) - enter it, select file log.txt, press F3 and see this:
Image: https://lh3.googleusercontent.com/pw/ADCreHdw24QfeOhFSKHINGAMLKGZbBdQD9nz6kDWM_oINLmBaAEHRVArdjS60TetN1IHAV-CHUJzL2jzfbMK5hDSgViu6YjN85tcekU_kObhBTh-sc3Z9nc4PYUnDkjqlH7D0nwXr_hTd-9EutG3QNIBeP4i=w453-h589-s-no?authuser=0

It wood be very helpful to be able rename/auto rename existing (unpacking) file here like in all others dialogs...

Re: More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-09-29, 20:39 UTC
by petermad
It is interesteing that if you use "Compare contents" (cm_CompareFilesByContent), the two files are opened in %TEMP%\_tc and %TEMP%\_tc_ - why doesn't TC just do the same for F3 and F4?

Re: More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-09-29, 21:21 UTC
by Dalai
2petermad
Just a guess: When comparing files by content, TC already knows that it will need two directories when extracting two files subsequently. It doesn't know that when a Lister window is open and another files is about to be extracted. I've been annoyed by TC's overwrite dialog when pressing F3 or F4 more than a couple of times myself...

Regards
Dalai

Re: More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-09-29, 23:33 UTC
by petermad
TC already knows that it will need two directories when extracting two files subsequently
Rather: TC already knows that it might need two directories - because it also uses two directories, when the files to compare has different names, either files in the same dir or in opposite dirs.

Re: More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-09-30, 20:09 UTC
by SUKER
It is interesteing that if you use "Compare contents" (cm_CompareFilesByContent), the two files are opened in %TEMP%\_tc and %TEMP%\_tc_ - why doesn't TC just do the same for F3 and F4?
Ha, I think it's like a bug :) F4 will do such a thing, but F3 - not.
F4: 1 file go in _tc, 2 file go in _tc_, 3 file show dialog with overwrite options.
F3: 1 file go in _tc, 2 file show dialog with overwrite options.

But any way my suggestion is still valid - in case of opening more then 2 files.

Re: More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-10-01, 09:38 UTC
by petermad
F4: 1 file go in _tc, 2 file go in _tc_, 3 file show dialog with overwrite options.
Yes, you are right - it is only F3 that don't use two temp directories!

But any way my suggestion is still valid - in case of opening more then 2 files.
TC could maybe do the same as it does when going into nested archives (archive in archive in archive etc.) - here TC uses directories like %TEMP%\_tc0, %TEMP%\_tc01 and %TEMP%\_tc2 etc.

Re: More options when unpacking by F3/F4 to temp folder file that already exist

Posted: 2023-10-01, 18:34 UTC
by Usher
I think that using more temp folders could be implemented long time ago, when tabs were introduced in TC.
That's why I suspect that there are some difficulties with implementation.