View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Feb 05, 2004 7:09 pm Post subject: DownloadToFile |
|
|
This is a little DSU which can download files from the internet to local files. It should work on every PC which is running Windows 95 or higher.
Code: | #define command,DownloadToFile
DownloadToFile http://www.server.com/file.zip,c:\localfolder\filename.zip
exit
:DownloadToFile
if @equal(%1,)@equal(%2,)
error 2
end
loadlib urlmon
%z = @lib(urlmon,URLDownloadToFileA,INT:,NIL:,STR:%1,STR:%2,INT:$10,NIL:)
freelib urlmon
exit |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Last edited by Skit3000 on Thu Feb 05, 2004 8:05 pm; edited 1 time in total |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 7:16 pm Post subject: |
|
|
Skit3000, do you have an api that allows us to post to a website? _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 7:43 pm Post subject: |
|
|
Hmmm, either this api doesn't like me, or it doesn't like .php urls. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 7:49 pm Post subject: |
|
|
Ok, thanks for the reply. I'll see if I can get this working here. The
code is not giving any errors, so I must obviously have the dll on my
system. It's a WinME system, so the dll can't be that old. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Feb 05, 2004 7:52 pm Post subject: |
|
|
I can't get it to work ither. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Feb 05, 2004 8:13 pm Post subject: |
|
|
Works now! Cool. Now...add a progress dialog? _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 8:15 pm Post subject: |
|
|
Wow... nice one Skit _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Feb 05, 2004 8:19 pm Post subject: |
|
|
LiquidCode wrote: | Works now! Cool. Now...add a progress dialog? |
It should be possible to do that with the right callback api or something, but I will first look if it is possible with some "GetFileSize" and apis and the @file() function, since I really have no clue how callback functions work... _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 8:20 pm Post subject: |
|
|
LOL!!! Looks like you changed the code up there a bit... added a few
things that were missing...
Excellent work, it works fine now... And thanks a bunch for sharing
this one with all of us. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 8:25 pm Post subject: |
|
|
Maybe Mac can test this one with Windows 95. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 8:27 pm Post subject: |
|
|
Oh come on now! No poking Mac in the side with a stick like that about
his Win95. Think I did enough of that a long time ago. Hehehehee _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 8:34 pm Post subject: |
|
|
I'm serious
We need people like Mac - what would the world come to if nobody used
Windows 95 anymore? We'd never have anybody to test for compatibility _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
|