LhA p -qN RAM:archive.lha Drawer1/Drawer2/TheFile >ram:TheFile
This almost works but adds \n-------------> END OF FILE <-------------\n to the file, theoretically if it's an exe it shouldn't hurt, the example program I extracted worked ok.
You're other option is a small dos script eg.
.key archive,file .bra { .ket } lha x {archive} {file} ram: move ram:{file} ram: delete ram:{file} all force
This will leave a few emtpy drawers lurking in ram: but at least they don't take up any space.
A neater way is to use dopus5 and xad to open the archive in a lister and just copy the file you want where you want. or use xadfilesystem do mount the archive as a partition and do the same.
Maybe XADUnFile might work, I've not tried that though.
Amiga user since 1985 AOS4, A-EON, IBrowse & Alinea Betatester
Ahhh... I was only looking at the help text in the program and not the badly but properly designed guide file, the index function is so rarely used I keep forgetting about it, maybe I should redisgn it a little, you almost got it right, it needs an 'e'...
LhA e -x2 RAM:archive.lha Drawer1/Drawer2/TheFile RAM:
Amiga user since 1985 AOS4, A-EON, IBrowse & Alinea Betatester