Welcome, Guest. Please login or register.

Author Topic: How to instruct lha to overwrite all files?  (Read 2521 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GulliverTopic starter

How to instruct lha to overwrite all files?
« on: February 07, 2011, 10:49:44 PM »
Hi, I am having a very small issue with an installer script. The thing is that I want lha to extract a compressed file and overwrite all destination files.

So does anyone know the proper lha switch/option so that the user doesnt need to input it by itself (A, for overwrite all)?

Example:

lha e archive.lha
Extracting: (  0/   2345) T:test.c
´T:test.c´ already exists, overwrite Y/N/A/S/Q

; I want to have automatically selected the A option here

Thanks in advance
« Last Edit: February 07, 2011, 10:52:20 PM by Gulliver »
 

Offline GulliverTopic starter

Re: How to instruct lha to overwrite all files?
« Reply #1 on: February 08, 2011, 05:16:47 AM »
I already found out how by myself, I am posting this in case someone in the future looks for this kind of answer:

lha -m1 e archive.lha
 

Offline Prosonic

  • Newbie
  • *
  • Join Date: Jun 2016
  • Posts: 2
    • Show only replies by Prosonic
Re: How to instruct lha to overwrite all files?
« Reply #2 on: June 17, 2021, 12:46:59 AM »
thank you was looking for this to add to dopus lha button
 

Offline kolla

Re: How to instruct lha to overwrite all files?
« Reply #3 on: June 17, 2021, 03:40:25 AM »
Hi, I am having a very small issue with an installer script. The thing is that I want lha to extract a compressed file and overwrite all destination files.

Yikes?
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS