"Background" button for zip extraction

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nologin
Junior Member
Junior Member
Posts: 4
Joined: 2009-03-08, 12:16 UTC
Location: Hungary

"Background" button for zip extraction

Post by *nologin »

I reckon the "Background" button for copy is very handy because when I use it I can get control of TC back while the operation keeps going on. Is it possible to send the extraction of zip or rar files to background?
I think it'd be a very useful feature if the future versions contained that feature.
Last edited by nologin on 2009-03-08, 14:27 UTC, edited 2 times in total.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, nologin.
Is it possible to send the extraction of zip or rar files in background?
I think it'd be a very useful feature if the future versions contained that feature.
As far as I can tell, Total Commander v7.04a is this future version.
Check the available wincmd.ini parameters, please (help section 4b):
AlwaysPackInBackground=0
1: zip in background
2: zip+external packers in background
3: like 2, but run external packers minimized

AlwaysUnpackInBackground=0
1: unzip in background
2: unzip+external unpackers in background
3: like 2, but run external unpackers minimized
Seems as if this is one of the too numerous useful settings which are missing from the Configuration dialogues and which require editing wincmd.ini directly.

HTH,
Karl
nologin
Junior Member
Junior Member
Posts: 4
Joined: 2009-03-08, 12:16 UTC
Location: Hungary

Post by *nologin »

Well, thanks for the tip, it caused half success. I added the two options in the [Packer] section of wincmd.ini with option number 2. After restart unpacking zip files has a "Background" button and it worked fine however unpacking rar files couldn't be sent to background yet.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, nologin.

Funny enough, but the two parameters need to be put into the [Configuration] section, not into the [Packer] section. After having done so, stopping and restarting T.C. might be a good idea.

Karl
nologin
Junior Member
Junior Member
Posts: 4
Joined: 2009-03-08, 12:16 UTC
Location: Hungary

Post by *nologin »

I have put the settings into the [Configuration] section and restarted TC, yet the dialog of rar files extracting contains only a Cancel button.
I don't know of how rar extracting differs from zip extracting (as TC displays only a dialog) but as no external rar extractor were set I presume TC uses its built in extracting engine which would mean the option to affect both extraction types. In this case, it doesn't happen.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, nologin.

Your answer suggests two things:
+ you are not using external Winrar, but the unrar.dll provided through T.C.
+ Christian still considers unrar.dll not thread safe, which means the internal unrar must not be sent to a background task (background thread)

As a consequence, the TC internal unzip task can be sent to a background thread, the TC internal unrar task cannot. So the only way of sending unrar into a background thread would be by telling TC to use the genuine Winrar programme and not to use the internal unrar.

Karl
nologin
Junior Member
Junior Member
Posts: 4
Joined: 2009-03-08, 12:16 UTC
Location: Hungary

Post by *nologin »

Well, in that case preventing the built-in extractor from being sent to a background thread totally makes sense. If I set the rar path to the external unrar.exe in WinRar folder, can it be forced to run in background?
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

RAR one

Post by *Clo »

2nologin

:) Hello !
…If I set the rar path to the external unrar.exe in WinRar folder, can it be forced to run in background?
• Doing so, you'll get the dialogue of WinRar itself, it has a Background button.
- Maybe is there a setting in WinRar to get this always ?… I use only the button when needed, so I didn't look for…
- Anyway, that might work as you wish using external WinRar and the INI entry
AlwaysPackInBackground=2 (or 3)
:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply