Problem with deleting files from rar archives

English support forum

Moderators: white, Hacker, petermad, Stefan2

a_flying_visit
Junior Member
Junior Member
Posts: 21
Joined: 2012-07-13, 19:27 UTC

Problem with deleting files from rar archives

Post by *a_flying_visit »

Hello,
there seems to be a bug with deleting files from rar archives via TC.
Here are the details:

1. Enter rar archive.
2. Press F8/Del.
3. Pop-up widows comes up: Warning: no archives found.
4. Close the pop-up window.
5. The next window pops up: Error packing files.

Both TC and WinRar are 64 bit. My system is Windows 7.
The TC options:
Rar Packer: C:\Program Files\WinRAR\WinRAR.exe
Use internal unrar if possible is checked.

Could someone enlighten me what is wrong, please?
Regards
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2a_flying_visit
You must use console version of the program (rar.exe).
Ukrainian Total Commander Translator. Feedback and discuss.
a_flying_visit
Junior Member
Junior Member
Posts: 21
Joined: 2012-07-13, 19:27 UTC

Post by *a_flying_visit »

That did the trick.
Thank you for your help!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

???
WinRAR should work just fine, I'm using it myself (registered). The "file not found" means that TC couldn't find or start winrar.exe.
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

MaxX wrote:2a_flying_visit
You must use console version of the program (rar.exe).
Thats wrong.
For me winrar.exe works fine and deletes without problems.
May be he has the wrong path to winrar.exe in the TC config.
a_flying_visit
Junior Member
Junior Member
Posts: 21
Joined: 2012-07-13, 19:27 UTC

Post by *a_flying_visit »

In the light of what ghisler and MaxX wrote, there is something strange with my TC configuration, but what?

The path is definitely correct. I checked and rechecked it.

Now, when I try to start WinRar.exe from the TC's command line, a pop-up appears "file not found". But I am in the very same folder and I _can see_ the file!! What's more, when I try to quick search the file (alt+ winrar), TC finds the file without a hitch.
Both TC and Winrar are genuine and registered. Both are 64 versions.
But wait, there is more. When I type in the TC's command line (being in the winrar folder) "c:\Program Files\WinRAR\WinRAR.exe" it cannot find the file, but when I type just WinRAR.exe, it opens the app all right!
It doesn't matter whether TC is started as administrator or not.
Any ideas?
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2a_flying_visit
Check your wincmd.ini for this line:
RAR=%COMMANDER_PATH%\Plugins\arc\Rar.exe -m5 -s -t
InternalUnrar=1
or
RAR=%COMMANDER_PATH%\Plugins\arc\WinRAR.exe -m5 -s -t
InternalUnrar=1
If you have this one -> sheck the exe's path to be ok.
If you do NOT have this one (or have another one) -> replace existing line with this one and put RAR.exe (or WinRAR.exe, if you wish) in this path.
Also, on Win64, you can use x64 version of packer, too.

Note 1:
Actually, there should NOT be any diffrence with command line syntaxis between RAR.exe and WinRAR.exe.

Note 2:
There may be no problem with RAR, but may be some trouble with UnRAR.dll.
Check if you have proper version from official installer or try this one:
http://www.unibytes.com/yKh3V5G2jT0Lqw-Us4P3UgBB
http://www.gigabase.com/getfile/nwJXw981Wl6r8vTobczPjgBB/unrar.ZIP.html
http://www.share4web.com/get/byq7Y5S8CqlzAzGY9Fki6zOZG8mMh3Wg/unrar.ZIP.html
(Sorry for slow sever, but file is larger than forum allowed limit, try any link you can. Just click "free download" variant, no pay needed.)
a_flying_visit
Junior Member
Junior Member
Posts: 21
Joined: 2012-07-13, 19:27 UTC

Post by *a_flying_visit »

Thanks for the links to unrar.dlls. I replaced the unrar.dlls, but that makes no difference. I had two unrar.dll file - one in windows/system32 and one in totalcmd folder.
I checked the path once again and added -m5 -s -t parameters. Nothing has changed.
I'll try to reinstall Winrar and put in the folder %COMMANDER_PATH%\Plugins\arc\.
Currently there is no "arc" subfolder in the Plugins folder. Winrar is in its default folder c:\Program Files\WinRAR\.
As I wrote, unpacking from TC works with the RAR console, so it's not a problem anymore. But since you say that TC should work with WinRAR, why doesn't it in my case? There must be some setting or tweak that I have missed, but no idea what it is.
The rar.exe and winrar.exe are in the same folder. Why can TC see rar.exe, but it can't see winrar.exe?
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2a_flying_visit
May be... you can try assing brackets...
RAR="%COMMANDER_PATH%\Plugins\arc\WinRAR.exe" -m5 -s -t
a_flying_visit
Junior Member
Junior Member
Posts: 21
Joined: 2012-07-13, 19:27 UTC

Post by *a_flying_visit »

After adding brackets I get a pop-up: Cannot find an external pack program.
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2a_flying_visit
So.... don't add them. :lol:
Don't have any idea what is wrong.
Try copying winrar.exe to tc's plugins directory as I did.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

My entry is just:
RAR=""C:\Program Files (x86)\WinRAR\WinRAR.exe""
without any parameters. Note the double quotes.
And this works with TC 8.01 RC4 x64
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2Horst.Epp
Check your access rights or sth else.
Also, some soft don't like diffrent programfiles dirs.
Try copying packer this way:
RAR="%COMMANDER_PATH%\WinRAR.exe" -m5 -s -t
or
RAR=%COMMANDER_PATH%\WinRAR.exe -m5 -s -t
and don't forget "-m5 -s -t" - that's for better and safer compression.
a_flying_visit
Junior Member
Junior Member
Posts: 21
Joined: 2012-07-13, 19:27 UTC

Post by *a_flying_visit »

It seems I have to resign myself to the fact that this mystery will not be solved. Just one more thing. TC can create archives with winrar.exe. The path I've got in configuration works all right.
It's just the problem with deleting files from archives. Here TC fails for some reason.
I'll be using rar console.
Thank you everybody for your help.
blind12
Junior Member
Junior Member
Posts: 20
Joined: 2004-04-22, 17:06 UTC

Post by *blind12 »

Similar symptoms suddenly appeared, I've never seen this before, Win7 32bit, ZIP-file (and zip files with MAFF extension), I can unzip the whole archive with Alt-F9, I can even F3-view from the virtual file directory inside the ZIP, but trying to *copy* a file from the virtual file directory inside the ZIP to the neighbouring panel gave a "No archives found" warning and brought up a packer settings window.

When I replaced the preset non-existent "pkunzip" Zip-unpacker with Winrar.exe, I no longer get a packer config window but an "Unzip: Warning! Possible CRC error" instead.

And sure enough, running "c:\Program Files\WinRAR\WinRAR.exe" gives a "file not found" error. Wait, it does work with quotes...

Since WinCmd didn't need any external unpacker until today, and was happy with the non-existent pkunzip in the settings, and since F3-view and Alt-F9-unpack work fine, the issue is clearly elsewhere.

-------
EDIT: My issue resolved after a simple restart. Something weird must've gotten broken in the system temporarily. Pardon the fuss.
Last edited by blind12 on 2015-06-26, 03:12 UTC, edited 2 times in total.
Post Reply