Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download the file from the internet and extract the .zip file
#1
Is there any instruction in qb64 that downloads files from a link and then extracts the file from the .zip file?
I use qb64 version 1.5.
Reply
#2
(10-24-2025, 10:01 AM)quickbasic Wrote: Is there any instruction in qb64 that downloads files from a link and then extracts the file from the .zip file?
I use qb64 version 1.5.

   There's no "built in" support but you can always Shell an external program.   

   In Windows the system program "START zipfile.zip" 
will open the zip file as a folder. 

so in QB64PE code   

 zipfilename$ = "myzipfile.zip"
 Shell -dontwait "START " + zipfilename$

 On MAC the command open will do similiar and on Linux
the program xdg-open will do likewise.
Reply
#3
(10-24-2025, 11:09 AM)ahenry3068 Wrote:
(10-24-2025, 10:01 AM)quickbasic Wrote: Is there any instruction in qb64 that downloads files from a link and then extracts the file from the .zip file?
I use qb64 version 1.5.

   There's no "built in" support but you can always Shell an external program.   

   In Windows the system program "START zipfile.zip" 
will open the zip file as a folder. 

so in QB64PE code   

 zipfilename$ = "myzipfile.zip"
 Shell -dontwait "START " + zipfilename$

 On MAC the command open will do similiar and on Linux
the program xdg-open will do likewise.
the first step is to download my file via link and then you have to do the file extraction
Reply
#4
(10-24-2025, 11:49 AM)quickbasic Wrote:
(10-24-2025, 11:09 AM)ahenry3068 Wrote:
(10-24-2025, 10:01 AM)quickbasic Wrote: Is there any instruction in qb64 that downloads files from a link and then extracts the file from the .zip file?
I use qb64 version 1.5.

   There's no "built in" support but you can always Shell an external program.   

   In Windows the system program "START zipfile.zip" 
will open the zip file as a folder. 

so in QB64PE code   

 zipfilename$ = "myzipfile.zip"
 Shell -dontwait "START " + zipfilename$

 On MAC the command open will do similiar and on Linux
the program xdg-open will do likewise.
the first step is to download my file via link and then you have to do the file extraction
  The above commands will also open a URL and download it so assign the value of the link (just copy link & paste) to the zipfilename$ variable instead of just the filename and as long as you have an active connection it should still work that way.    You will still have to ***drag the files*** out of the opened Window but your at least 1/2 way there.    There May be parameters you can pass to extract the files but I don't know what those would be !
Reply
#5
How can you survive in IT without an archiver?  Huh

1. Here's a universal archiver: 7zip -- Install it.
2. QB64pe Version 4.2.0: QB64pe - Version 4.2.0 -- Click on the correct package.

Right-click on the 7z file and select "Extract here," then move the entire folder to where you want it. Afterward, create a shortcut to qb64pe.exe on your desktop. Start the program from there and configure it.
Reply
#6
(10-24-2025, 10:01 AM)quickbasic Wrote: Is there any instruction in qb64 that downloads files from a link and then extracts the file from the .zip file?
I use qb64 version 1.5.
Anyone who started using PCs in the days of DOS will find installing QB64pe natural and intuitive. For Windows systems:

1. First, install the 7zip utility. It's free.

https://www.7-zip.org/

2. Find or create a convenient folder for your programs.

3. Download the zipped file with the latest version pf QB65 PE(7zip).

4. Right click on the downloaded zipped file and instruct 7zip to extract the content into whatever folder you had elected to use in step 2.

The nice thing about QB64pe is that it installs without making any changes to the Windows Registry. When you extract the 7z file content, it will create a qb64pe subfolder in whatever folder you decided to use for this. You can then launch QB64 pe by going into that new qb64pe subfolder and clicking on the qb64pe.exe executable. (And of course, good idea to create a shortcut to that .exe file, say in your start menu.)
Reply
#7
@bert22306 good point about the Windows registry - the fact that the EXE just runs and no "installation" is needed is one of the best unsung features of QB64 & QB64PE. And the fact that it's all there - editor, compiler, debugger- in that one EXE makes it super easy to use. There's no confusing toolchain to figure out or set up (like that other free BASIC... oops did I just give the name away? Tongue ) But seriously, the ease of installing & running the program itself saves a lot of brain cycles for doing the actual programming.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux - file dialogue boxes... atl068 7 888 08-05-2025, 07:21 PM
Last Post: hsiangch_ong
  Converting a MIDI file to text (csv, tab-delimited, etc.) and back again? madscijr 7 2,288 03-11-2025, 11:00 PM
Last Post: madscijr
  Mix mode input of a binary open file Question! doppler 5 1,459 11-28-2024, 03:06 PM
Last Post: Petr
  Suggestion: Preallocated file open doppler 14 2,715 02-25-2024, 02:35 AM
Last Post: SMcNeill
  Unable to extract the QB64PE .7z distribution using File Explorer hanness 7 1,832 10-10-2023, 07:24 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)