English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 09 December 2019, 02:44   #1
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Trying to archive an lha file inside a new lha file

Can lha archives be nested inside each other? I've been trying to add an lha archive and a script file to a new lha archive that contains both, but DOpus doesn't want to comply, it just takes me straight to the help screen after I've selected both and clicked on LHA and entered a name. How can I force it do this?

The reason I want to do this is to preserve Amiga "protect" bits, because as far as I know, only lha archives do this.

Thanks in advance.

EDIT: Never mind, found an alternative solution. Admins, please delete this post.

Last edited by Foebane; 09 December 2019 at 03:25.
Foebane is offline  
Old 09 December 2019, 14:36   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
And what is your solution?

To answer the topic question. Yes it can. Simple by add an file (can be an LHA archive of course) to an LHA archive. The command is "a". E.g.:
Code:
LHA a ram:lha_archive.lha work:some_file_to_add
daxb is offline  
Old 09 December 2019, 14:40   #3
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
I just don't get why anyone would want to add an .LHA file inside an .LHA file though?
DamienD is offline  
Old 09 December 2019, 19:10   #4
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
You know what annoys me...

dms -> Lha -> lzx

Rar -> zip
BippyM is offline  
Old 09 December 2019, 21:55   #5
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by daxb View Post
And what is your solution?
I found a solution soon after, with ZIP files on the Windows side.

Basically, I take an LHA file containing a multi-file demo, and a .script file which is a method of running the demo automatically without having to seek the exe or whatever else is needed to run it, and put them inside a non-compressing ZIP (for compatibility with WinUAE), and I can then run the whole demo from another script.

It sounds convoluted, I know, but it works, and I will provide an example one day.
Foebane is offline  
Old 10 December 2019, 03:15   #6
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,772
It doesn't sound convoluted, it sounds absolutely insane
Hewitson is offline  
Old 11 December 2019, 21:08   #7
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
This is how I'm able to run demos with a double-click as of now:

1. First of all, I set up the following script and attach it to an icon with C:IconX as the default tool:

Code:
cd rdh0:
s:spat run #?.exe
s:spat execute #?.script
2. I then sort the demos between two types of archives on the Windows side:

7-Zip (Normal compression) for single files ending in .exe, always, or
Zip (Stored, no compression) to hold original downloaded demo archives (lha, lzx or zip) along with a script which will run the demo straight from the archive, like the following for "Switchback" by Rebels:

- Archive is downloaded from Pouet.net
- Archive is renamed to unique Pouet.net number with "@" prefix, so archive name is now "@2744.lha"
- Script "@2744.script" contains the code to run the demo and anything else, for example:

Code:
cd @2744.lha.dir
assign rebels: ""
sb.exe
3. Once the new archive containing original archive and script file is created, it's just a case of dragging and dropping into WinUAE and Workbench, and double-clicking on the script detailed in 1. to run the demo.

Not simple, and it does require some work to convert the collection, but it does make it easy for a complete Amiga novice to run my Amiga demo collection!
Foebane is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting lha archive problems xubidoo support.Apps 3 21 March 2019 23:24
LHA - Splitting a large file into 2 archives DamienD support.Other 18 31 January 2017 09:54
No installer for MagicWB21p.lha (file from FAQ) Snowwie support.Apps 4 17 March 2012 14:12
MagicMenu 2.35 LHA Archive Leandro Jardim request.Apps 6 25 August 2010 01:49
Req: File CYC-V13.LHA on old Paradise Dream BBS Gringo request.Apps 17 25 April 2010 21:11

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:02.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.21646 seconds with 15 queries