archive extraction

captnk

Registered User.
Local time
Today, 22:07
Joined
Dec 12, 2001
Messages
148
Using vb i am trying to extract some *.lzh
files in a "download" directory in access

I am using a freeware prog.called LHA.EXE

This extracts the above files fine...however I am having serious problems getting the syntax right .
Yep it uses a .bat file that I shell out to in VB
A bit of good dos programming needed here :)
What i want to do is to nominate the drive and folder where the downloaded archives are put,and extract them to the nominated drive and folder.
The command lha e,extracts the files but only from c:\download and puts them in the lha folder on c:
I need to achieve more than that
Any help appreciated

Captnk
 
The following comes from my LHA help file:

LHA <command> [/<option> ARC [[DIR\] [FILE]...]... [-+012|WDIR]...]

<command>: if one is not used, you get the help screen or a list of FILE(s).
<option>: you may supply one or more of options explained below. (needs an / or - in front, to designate an option)

ARC: archive name.
DIR: base directory name.
FILE: File name or full pathname if specified.
WDIR: Working Directory name.
 
Many tks Neileg.
Unfortunately I am still struggling with this.
No matter what i do the thing will only find the archives in c:\downloads...(e:\is my main drive)
and it extracts to the folder wherever the .bat file is located,regardless of what I type as the work directory in the .bat file.
It really has got me stumped,particularly why it will only recognise c:\downloads

I am wondering if something in Lha is set to recognise c: only (after all it is a very old dos programme)

On what it does now it is probably useable for my purpose,but really annoying as to why I cant select the options I want
 
Do you have the help files? According to these different drives are supported. Maybe you have to be explicit in your file names?
 

Attachments

Many tks.
That help file is much more extensive than the 1 i got with my version lha255.

So I will have a good look at it

Captnk
 
HUZZAHHHHH!

It worked!!

I don't know why, but it did!

Maybe its because I inadvertantly had the table already open in the background?

Ah well, Im chuffed. :D
 

Users who are viewing this thread

Back
Top Bottom