Welcome, Guest. Please login or register.

Author Topic: LHA archive commands  (Read 6444 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline cgutjahr

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 697
  • Country: 00
    • Show all replies
Re: LHA archive commands
« on: June 10, 2016, 10:20:41 AM »
Quote from: pyrre;809747
Hello
I cant remember the CLI command for lha


lha -er a NAME_OF_THE_ARCHIVE FILE1 FILE2 FILE3

(e=archive empty dirs aswell, r=collect files recursively, also activates x option)

Quote

i cant remember how to address the homedir

I never bothered with homedir, since specifying homedir required removing the homedir part of the path of all filenames you supply. Just 'cd' to the homedir first, then run LhA - sounds like a much simpler approach to me.

If you want to specify homedir, do it like this:

lha -er a NAME_OF_THE_ARCHIVE HOMEDIR FILE1 FILE2 FILE3

(HOMEDIR *has* to end with a slash or a colon, otherwise it won't be recognised)