10-24-2025, 10:01 AM
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.
I use qb64 version 1.5.
|
Download the file from the internet and extract the .zip file
|
|
10-24-2025, 10:01 AM
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.
10-24-2025, 11:09 AM
(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? 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.
10-24-2025, 11:49 AM
(10-24-2025, 11:09 AM)ahenry3068 Wrote:the first step is to download my file via link and then you have to do the file extraction(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?
10-24-2025, 11:58 AM
(10-24-2025, 11:49 AM)quickbasic Wrote: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 !(10-24-2025, 11:09 AM)ahenry3068 Wrote:the first step is to download my file via link and then you have to do the file extraction(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?
10-24-2025, 02:58 PM
(This post was last modified: 10-24-2025, 02:59 PM by Kernelpanic.)
How can you survive in IT without an archiver?
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. (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?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.)
@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?
) But seriously, the ease of installing & running the program itself saves a lot of brain cycles for doing the actual programming.
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Linux - file dialogue boxes... | atl068 | 7 | 887 |
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,456 |
11-28-2024, 03:06 PM Last Post: Petr |
|
| Suggestion: Preallocated file open | doppler | 14 | 2,714 |
02-25-2024, 02:35 AM Last Post: SMcNeill |
|
| Unable to extract the QB64PE .7z distribution using File Explorer | hanness | 7 | 1,820 |
10-10-2023, 07:24 PM Last Post: SpriggsySpriggs |
|