04 January 2012, 23:39 | #1 |
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
.LZX archives conversion
Hi,
is there a way - in Windows - to convert a .lzx archive (containing files and directories, not a disk image) to another archive type (for example .lha etc.) without losing/modifying the original attributes of the included files/directories? I tried using W95unlzx, but the files/directories attributes change to the current date and time. I know I should do it all with the Amiga (or WinUAE), for example copying the contents on a floppy / hard disk, but doing it in Windows is more practical. By the way: it's a stupid question but I never took notice... if on an Amiga I extract a .lzx archive, will the extracted contents get new date/time attributes? I fear so... Last edited by Supamax; 04 January 2012 at 23:50. |
04 January 2012, 23:51 | #2 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Hi Supamax,
Using Windows command line utilities like W95unlzx will always be problematic when unpacking Amiga archives because the Windows filesystems lack the same precision regarding the timestamps. Windows' precision is two seconds and Amiga OS' is 0.02 seconds - plus, Windows is unable to replicate any date before 01-Jan-80. Hence, what you really need is a utility which converts directly from .lzx to .lha internally without dumping the filesystem to the host hard disk - and I don't know of one, unfortunately. So, it must be done within WinUAE or on a real Amiga using the LZX and LHA archivers. Edit: Both LZX and LHA archivers allow you to preserve both the attributes and the date/time stamps of both files and directories with command line switches. Last edited by prowler; 04 January 2012 at 23:59. |
05 January 2012, 00:12 | #3 | |
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
Thanks
Quote:
However... I don't necessarily need to repack them in .lha format. I didn't make myself clear (even to myself ). I thought that a direct .lzx --> .lha conversion could retain the date/time stamps without too many hassles... and you confirmed that . What I really want to do is unpack the .lzx contents onto floppy/hd without changing the date/time stamps. According to what you wrote, it can be accomplished by using the LZX archiver. So... thanks EDIT: I'm looking on Aminet... is there a particular LZX archiver and GUI to suggest? http://aminet.net/search?query=lzx&sort=date&ord=DESC Last edited by Supamax; 05 January 2012 at 00:18. |
|
05 January 2012, 00:30 | #4 | |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Quote:
http://aminet.net/package/util/arc/lzx121r1 It's a command line utility. There are GUIs for it, but they may require MUI, and I find that use of the command line gives better control over the archiving process. To extract an archive copied to your ramdisk and preserve all attributes and time/date stamps, you should open a CLI on the disk to which you wish to extract the archive, e.g. DF0:, and enter: lzx -ak x ram:archive.lzx Edit: Have a look here for some possible GUIs to use with common archivers: http://aminet.net/search?query=LZX Last edited by prowler; 05 January 2012 at 00:40. |
|
05 January 2012, 00:41 | #5 | ||
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
Quote:
Are they necessary for dealing with "post year 2000" files? Quote:
P.S. what do you think about Packmaster128? http://aminet.net/package/util/arc/Packmaster128 EDIT: sorry, I thought that Packmaster128 was a GUI for lzx121r1, but I now suspect it could use its own archive/extract "engine"... is it so? It's very popular (2282 downloads) Last edited by Supamax; 05 January 2012 at 00:47. |
||
05 January 2012, 00:49 | #6 | |||
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Quote:
Quote:
Quote:
If it has its own engine, then I wouldn't trust it. I sometimes use LZX 1.20r when I'm fixing .lzx archives and v1.21 doesn't produce matching compressed code under certain circumstances, but I don't trust anything else. |
|||
05 January 2012, 01:11 | #7 | |||
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
Quote:
"Installation: use freely distributable GPatch program (included) on exe files from original LZX 1.21r distribution (it can be found on Aminet as 'lzx121r1.lha' in 'util/arc' directory)." So it would seem that lzx121r1.lha is not patched... Furthermore, if you look at the dates in the Aminet archive, you can see: LZX121r_pch.lha is dated 2000-01-11 lzx121r1.lha is dated 1997-12-20 (older) By the way, there's another patch!: LZX_Y2Kfix.lha, dated 2000-01-20, which is newer than LZX121r_pch.lha and described as "LZX 1.21r 100% y2k bug fixed by dr.Titus". I suppose this is a replacement of LZX121r_pch.lha ..? Quote:
Ok, I suppose I'll stay with the DOS version, without GUI Quote:
Last edited by Supamax; 05 January 2012 at 01:27. |
|||
05 January 2012, 01:22 | #8 | |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Quote:
However, 'dr.Titus' does seem vaguely familiar, so maybe that's the one I used, or else I got hold of a 'dr.Titus' Y2K bug-fixed vesion from somewhere? |
|
05 January 2012, 01:26 | #9 | |
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
Hmmmm...
Ok, if in doubt I'll use the 'dr.Titus' patch then... Quote:
Or are you simply saying that under certain circumstances the two releases produce slightly different archives (all conditions being equal - parameters, files etc.)? |
|
05 January 2012, 01:39 | #10 | |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Yes, that's the one I would use if I had to rebuild my C: folder.
Quote:
I discovered this when I was reconstructing a broken lzx archive on a corrupted Amiga Fomat 117a coverdisk image. I couldn't even closely replicate a certain part of the compressed code with v1.21r whatever command line switches I used, but when, in desperation, I tried v1.20r, I got an exact match straightaway! I posted here about it at the time. I'll try to find it... |
|
05 January 2012, 01:50 | #11 | ||
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
Quote:
Quote:
I like your way... try&try&try all possible paths until you get some positive results . When I enter my "frenzy" mode I'm very similar... |
||
05 January 2012, 01:59 | #12 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Here it is! In particular, the bit where I say "Incidentally, I'm not sure what version of LZX they were using at Amiga Format to produce their archives, because I had to use a combination of Registered versions 1.20 and 1.21 to reproduce their compressed data. "
(I had been reconstructing the Fiasco 2.2 LZX archive on that disk from an LHA archive I got from Aminet, when I found that I had to change to v1.20 exactly to replicate a portion of the compressed code!) |
05 January 2012, 07:13 | #13 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,522
|
Quote:
I assume w95unlzx simply uses old date APIs. |
|
05 January 2012, 18:41 | #14 |
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
Hmmm, OK for the precision etc., but what I noticed is much worse: all files extracted using W95unlzx have/get the current date and time (of my PC) .
|
05 January 2012, 22:10 | #15 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Zone and lzx archives | Retro-Nerd | project.EAB | 2 | 30 December 2010 00:41 |
New Icon Archives | Paul | News | 0 | 07 January 2005 12:21 |
dms archives | T_hairy_bootson | Amiga scene | 15 | 02 October 2003 23:53 |
Utility disks and PD archives | absence | request.Apps | 5 | 06 March 2003 16:03 |
|
|