there is a function to unzip the files once I have finished downloading the files automatically I have some utility that can be used with AmigaOs 4.1FE to do this through a script to manage the .LHA archives eventually it would be more convenient from the command line if possible.
Hi Petrol, I tried your solution, but I can't understand the syntax I should use (and my mistake definitely)
"wget -i list" is the initial command this downloads the files that will go to ram:
At that point I need the command you suggested to extract all the ram files: (just downloaded) without any distinction, extracting all the .lha files found in ram:
What do you see when you close your eyes ? I see light, lots of light I see you, dad And I see mommy too And I see me and we are together And we play forever.
C:wget -i list
Foreach i in #?.lha
C:lha x "$i"
End
Save it to ram: Do a right clic on its icon and choose "Information" Tick the script box In the icon tab, in default tool, replace the textviewer by "C:IconX" Save your icon information (Click save)
Now if you double click on your script icon, it will run the script and not the textviewer.
It will launch the wget programm first and download the files from your list. Once the files downloaded, it will look for each lha files and extracts them (i represents the lha file).
Hi Petrol, thanks for your help the script works perfectly, and would also work first because if I put an archive in ram:
example: unrar.lha
the script Foreach i in # ?. lha C: lha x "$ i" End
It works perfectly.
but if I use for example wget -i list the files are downloaded but with these names download.php?=network2Fserver%%2Fftpzitaftpserver.lha
I don't know the reason, probably the file name is too long or I'm wrong to set: wget -i list to download the files.
because if I put any archive downloaded for example with Odyssey in ram the script to extract it works perfectly.
What do you think about it? Thanks again
What do you see when you close your eyes ? I see light, lots of light I see you, dad And I see mommy too And I see me and we are together And we play forever.
@Petrol Thank you! now it works perfectly. I had searched the wget "man" but could not find this option. Thanks this helps me a lot, thanks again
What do you see when you close your eyes ? I see light, lots of light I see you, dad And I see mommy too And I see me and we are together And we play forever.
What do you see when you close your eyes ? I see light, lots of light I see you, dad And I see mommy too And I see me and we are together And we play forever.
Lha x "$i" is the command for e »x »tract, x is an arg to lha here ,the archive $i in the loop created by the foreach ... end. I put the " " around $i because sometimes, archives could contain space characters.
I think you could just use before the « end »: C:Delete "$i" Which means delete the lha file that been extracted just before.
Hi Petrol, I edited it, thanks it works perfectly. Sorry for my request, I created with installerGEN a very complete installer for 4.1FE update1 which automatically installs all the packages needed to have the complete system. Obviously with the request of the original CD etc.
Using the newly created initial script, is it possible to directly call the installer created without exiting the script? It would be very convenient and clean as a code.
In case it wouldn't be possible, it doesn't matter.
I am very happy with this result. Thanks again.
Thank you for the link.
What do you see when you close your eyes ? I see light, lots of light I see you, dad And I see mommy too And I see me and we are together And we play forever.
Hi Petrol, Thanks for the suggestion, today i will try as you suggested Thanks again.
What do you see when you close your eyes ? I see light, lots of light I see you, dad And I see mommy too And I see me and we are together And we play forever.