External Archive(r) (UC2) Handling Problem

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
but could unpack it without problems both with Alt+F9 and F5.
How can you unpack with F5 if you can't enter the archive?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2petermad
TC can enter into UC2 (both 7.04a and 7.50a).
So please post a screenshot with error(s).
Also it will be good to share the sample arhive, its path/filename, filenames in archive...
Why it's matter? UC2 doesn't like for example long names, or russian chars, or spaces in path...
added: TC also doesn't support uc2 archives encrypted with ucrypt (they have different extension but may be manually renamed to .uc2)...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Hacker
Moderator
Moderator
Posts: 13075
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

DrShark,
UC2 doesn't like for example long names
To the best of my knowledge UC2 can handle long file names.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Hacker wrote:To the best of my knowledge UC2 can handle long file names.
No. If to pass long name to uc2 (even quoted), it will report
FATAL ERROR 130: Long:\Path\File Name does not exist

1 error has been reported (logged to C:\WINDOWS\UC2ERROR.LOG)
TC passes 8.3 aliases to workaround this limitation...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Hacker
Moderator
Moderator
Posts: 13075
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

DrShark,
No.
Well, works fine here.
U_MANUAL.TXT wrote:16. WINDOWS 95 (long filename support)
======================================

In order to remain backward compatible with 16 bit DOS and MS-Windows
software, Microsoft implemented a 'double filename' system in Windows
95. Each file gets 2 names, a short name and a long name.

(Visual) UltraCompressor will preserve both the short and the long
filename of files. UC2 does this completely automatic. No settings or
options are needed to preserve long filenames (or long directory names).

Visual UltraCompressor can show both the long and the short filename.
You can use the F11 key to toggle between viewmodes.

The UC command line needs short filenames (or wildcards like *.*) to
operate. UC will (re)store long filenames, but the only way to directly
view/manipulate long filenames is with Visual UltraCompressor.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Hacker
And your quote confirms my words:
U_MANUAL.TXT wrote:The UC command line needs short filenames (or wildcards like *.*) to
operate. UC will (re)store long filenames, but the only way to directly
view/manipulate long filenames is with Visual UltraCompressor
.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Hacker
Moderator
Moderator
Posts: 13075
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

DrShark,
Well, you may not pass long file names on the command line, but UC2 still knows how to work with files with long names, can store and restore them.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I found out why I couldn't enter .uc2 files.

I had the link in the [Packers] section set up as:
UC2=uc.pif

where uc.pif is placed in c:\windows (default) and pointing to my c:\wc\packers\uc.exe.

That is how I have set up external packers since Windows Commander 2.0 because TC / WC has always been shipped with these .pif files.

For some reason packing and unpacking works ok with the uc.pif file but not entering/listing the file.

I consider it a bug that it doesn't work with the uc.pif file.

If I in stead use this entry in wincmd.ini it works:
UC2=%COMMANDER_PATH%\PACKERS\UC.EXE

But if I use this it once again only works for packing and unpacking, but not listing:
UC2=PACKERS\UC.EXE

This syntax with relative path to TC's program folder works for all other external packers.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

That's how TC 7.04a and TC 7.5a calls UC2 when trying to unpack a single file from archive:
its sets the temp (%temp%, %tmp%) as a current dir and then calls uc.exe with filelist as parameter:
C:\Users\Vladislav\AppData\Local\Temp\_tc>uc.exe @C:\Users\VLADIS~1\AppData\Local\Temp\CMD6CD9.tmp
The difference between 7.04a and 7.5 is that 7.5 sets current dir (%tmp% and %temp%) as long name -> UC can't unpack files...

Another difference in filelist CMD6CD9.tmp (it has random name each time):
TC 7.5 stores a path to archive as a long name -> UC can't unpack files...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Haven't had that problem - my %temp% dir is f:\temp (no long names) ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48125
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - so I will try to use short names in the next version. People with this problem should also set the temp var to something like c:\temp .
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:I see - so I will try to use short names in the next version.
Thanks. Fixed in TC 7.55pb1.
P.S. The window >>> UC2 (DIR) <<< appearing while reading uc2 content cannot be closed by pressing Esc key. Can it be changed in future version?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48125
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, you need to close UC.exe instead.
Author of Total Commander
https://www.ghisler.com
Post Reply