Page 1 of 1

Make %Z work with /S=L and /S=C inside arhives

Posted: 2010-05-21, 21:28 UTC
by petermad
When trying to open a separate Lister or Compare window from for example a button, using totalcmd.exe as command with /S=L or /S=C as parameter it is not possible inside archives:

1. If I use the %Z paramter I get a "File not found!" message showing the "path" to the file inside the archive - for example c:\test.zip\test.txt.

2. If I don't use the %Z parameter I get the message: "This function cannot be used with packed files!"

Expected behaviour when using the %Z parameter is that TC unpacks the selected file to %temp% dir and then shows/compares it - just as if the internal commands cm_List or cm_IntCompareFilesByContent had been used.

Posted: 2010-05-23, 09:19 UTC
by ghisler(Author)
%Z just tells TC to not validate the parameters and run the program with the parameters as specified by the users. This is mainly meant for programs which can handle archives themselves. Currently it's unfortunately not possible to unpack files as needed, sorry.

Posted: 2010-05-23, 10:34 UTC
by petermad
This is mainly meant for programs which can handle archives themselves.
And one should think that TC itself would be one of those programs ;-)
Currently it's unfortunately not possible to unpack files as needed,
That's why this is a feature request for the future.

Posted: 2010-05-23, 11:49 UTC
by Samuel
Support++;

Please consider better integration of archives for TC 8.0.
Not only opening files (from buttonbar) from a zip file without extracting them manually, but also for viewing Thumbnail in archives, etc.

Posted: 2010-05-24, 13:44 UTC
by ghisler(Author)
And one should think that TC itself would be one of those programs
TC yes, but the compare tool or Lister know nothing about archives...

Posted: 2010-05-24, 18:41 UTC
by Samuel
But TC could:
1) unzip such files to a temp dir
2) call the prog with the external tool
3) wait until the program closes
4) check for changes
5) rezip the files

Also from FTP, plugins etc... (where copying is supported.)