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:
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).
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.