Extract to network share not possible?

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
AVE160
Junior Member
Junior Member
Posts: 12
Joined: 2005-03-27, 12:02 UTC

Extract to network share not possible?

Post by *AVE160 »

Some weird just occurred to me:
I have an archive (rar) and want to extract the files to another computer. Due to password problems I have setup TC to use Winrar for handling the rar archives. When I do a copy F5 to \\server\share the files are unpacked to the local directory, not the network share.

Is this intentional or is it a bug?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try using WinRAR.exe instead of Rar.exe. I have just tested with WinRAR.exe, and it works.
Author of Total Commander
https://www.ghisler.com
AVE160
Junior Member
Junior Member
Posts: 12
Joined: 2005-03-27, 12:02 UTC

Post by *AVE160 »

I am using winrar version 3.51 and TC 7.0pb4

Now using my pc with XP and tried to unpack to a share on the same computer. The files end up in the same directory the archive located.

For the record: I am extracting to a UNC path, not a mapped drive.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Cannot reproduce. Tester on XP SP2 Pro, TC7rc3, WinRAR 3.62. Unpacking with Alt+F9 from the left panel (local drive) to the right one (UNC-path).

<ADDED>
Tested with copying from archive via F5 - results are the same.
All tests were performed with the local share \\<my-computer>\Incoming.
Last edited by Flint on 2007-04-21, 15:46 UTC, edited 1 time in total.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Re: Extract to network share not possible?

Post by *StatusQuo »

AVE160 wrote:When I do a copy F5 to \\server\share the files are unpacked to the local directory, not the network share.
Confirmed (TC7rc3, WinRar 3.62, W2k).
This seems to apply only to local shares (both via \\127.0.0.1\share and using the external IP of the local PC), this problem does not exist with remote shares on other PCs.
Also everything is going right when using Alt-F9 to extract the whole archive.

But (after opening the archive in TC) using F5 to copy single files or dirs fails, the extracted files/dirs are extracted to the local dir the archive is in.

To reproduce:
- make shure "Use internal un-RAR if possible" is NOT checked in Options / Config. / Packer
- open rar file on the left
- open a (local) share on the right panel (\\127.0.0.1\c)
- use F5 to copy a single file or dir to the share on the right panel
=> It will be extracted to the dir of the rar that is opened on the left side.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

StatusQuo wrote:- make shure "Use internal un-RAR if possible" is NOT checked in Options / Config. / Packer
Ah, that's the point! Now I can confirm the problem. However, I can't tell whether it is a bug of TC or WinRAR...
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
AVE160
Junior Member
Junior Member
Posts: 12
Joined: 2005-03-27, 12:02 UTC

Post by *AVE160 »

Neither do I.
I can try giving the commandline options to WinRAR directly, if I only knew what they were :)
Doing a manual unpack of a .rar file with winrar (manual=from the commandline) the files are extracted to the networkshare, but that was without much options and I do not know what options TC gives to the external unpacker.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

AVE160 wrote:and I do not know what options TC gives to the external unpacker.
You can check it with my simple test program from this post.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Here is the command line passed to WinRAR:

c:\WinRAR\winrar.exe x -c- E:\test\test.rar \\server\share @c:\temp\CMD363.tmp

The file CMD363.tmp contains the file names of the files which need to be unpacked. You can write *.* instead of it to extract all files.

I can confirm that WinRAR tries to extract to the directory of the rar file when trying to unpack to the root of the share. This seems to be a bug in WinRAR. It seems to work when I specify \\server\share\ with a trailing backslash instead of just \\server\share ...

As a workaround, I will append a backslash for the RAR packer if the target is the root of a share.
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 »

ghisler(Author) wrote:I can confirm that WinRAR tries to extract to the directory of the rar file when trying to unpack to the root of the share. This seems to be a bug in WinRAR. It seems to work when I specify \\server\share\ with a trailing backslash instead of just \\server\share ...

As a workaround, I will append a backslash for the RAR packer if the target is the root of a share.
Fully confirmed here, and a trailing backslash seems to help.
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: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Should be fixed now in RC4, please test!
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Yes, confirm fixed.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Confirm, fixed in RC4. :)
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: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for checking it!
Author of Total Commander
https://www.ghisler.com
Post Reply