English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 10 February 2022, 10:05   #1
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
lha template to freeze file into a specific dir?

Is there a way to instruct lha to archive a file into a specific path of the archive?
I mean something like:
lha a archive.lha thisfile intothispath

E.g.
freeze thisfile -> archive.lha's subdir A/thisfile....
hexaae is offline  
Old 10 February 2022, 11:47   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
I'm using ArcDir.dopus5 ( http://aminet.net/package/util/dopus/ArcDir ) for DOpus5. I only found one line starting with "LHA a" that should do the trick. You may have a look.
daxb is offline  
Old 10 February 2022, 13:07   #3
jPV
Registered User
 
jPV's Avatar
 
Join Date: Feb 2008
Location: RNO
Posts: 1,007
Unfortunately LhA doesn't have that kind of option. What I did with RNOArchive, and what DOpus' ArcDir also does, is to create a temporary directory structure somewhere and archive that recursively.
jPV is offline  
Old 10 February 2022, 14:35   #4
freakofnature
Registered User
 
Join Date: Jan 2021
Location: Darksideofthemoon
Posts: 69
the most simple solution i can think of is:

create same path on ramdisk or virtual disk. copy or move the file over.
e.g.
file in question is "mylast.log" on drive "dh0:"
target location is "backup/logs/" in "mybackup.lha" on drive "dh1:"
Code:
makedir ram:backup
makedir ram:backup/logs
copy dh0:mylast.log ram:backup/logs/
lha -x a dh1:mybackup.lha ram:backup/logs/mylast.log
p.s. tested and confirmed

Last edited by freakofnature; 10 February 2022 at 14:41. Reason: p.s. tested and confirmed
freakofnature is offline  
Old 10 February 2022, 15:50   #5
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
yep... I know the trick to create first the directory structure in RAM:
Ok thanks, at least now I'm sure
hexaae 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
Problem overriding base-dir via ~/Library/Preferences/fs-uae/base-dir on macOS -fun- support.FS-UAE 7 18 November 2021 07:24
Trying to archive an lha file inside a new lha file Foebane support.Apps 6 11 December 2019 21:08
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
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:42.

Top

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