473,378 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Automate file downloads


Hi,

This is pretty simple stuff but if anyone can point a novice in the
right direction it would be appreciated.

I have a bunch of URL's that point to files on the internet whose
download I would like to automate. Normally, I would have to paste the
address in Internet Explorer's address bar, click 'Save' when the File
Download dialog box pops up and then indicate a local disk location
when the Save As dialog box appears.

So, the pseudo code would be something like

Open text file containing URL's
Retrieve URL from text file
Open link
Save file to specific location on local disk
Retrieve remaining files
Close text file containing URL's

If I could accomplish this with a simple script that would be nice but
I do have Visual Basic 2005 Express and Visual Basic 6.0 to work with
if needed. No login is needed to access these files.

My system

Windows XP Pro SP2
Intel 2.8 GHz with 1.25 GB RAM
Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
.Net Framework ver. 2.0.50727.42

Thanks again, Steve

Jan 15 '07 #1
3 1731
Try :
http://msdn2.microsoft.com/en-us/lib...nloadfile.aspx

----
Patrice

<st***********@sbcglobal.neta écrit dans le message de news:
11**********************@51g2000cwl.googlegroups.c om...
>
Hi,

This is pretty simple stuff but if anyone can point a novice in the
right direction it would be appreciated.

I have a bunch of URL's that point to files on the internet whose
download I would like to automate. Normally, I would have to paste the
address in Internet Explorer's address bar, click 'Save' when the File
Download dialog box pops up and then indicate a local disk location
when the Save As dialog box appears.

So, the pseudo code would be something like

Open text file containing URL's
Retrieve URL from text file
Open link
Save file to specific location on local disk
Retrieve remaining files
Close text file containing URL's

If I could accomplish this with a simple script that would be nice but
I do have Visual Basic 2005 Express and Visual Basic 6.0 to work with
if needed. No login is needed to access these files.

My system

Windows XP Pro SP2
Intel 2.8 GHz with 1.25 GB RAM
Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
.Net Framework ver. 2.0.50727.42

Thanks again, Steve

Jan 15 '07 #2
I imagine that the posted .Net method will be the
easiest for what you want, but if you want to use a
component with script you can see here:

http://www.jsware.net/jsware/scripts.php3#ryo

The component jsTP.exe is designed for VBScript.
It will download files and also report the server
conversation. (In case the download fails you may
want to retrieve the server error code returned.)

The source code, in the form of a dependency-free
VB6 UserControl (runs on Win95+ with only the VB6
runtime needed), is here:

http://www.jsware.net/jsware/vbcode.php3
>
This is pretty simple stuff but if anyone can point a novice in the
right direction it would be appreciated.

I have a bunch of URL's that point to files on the internet whose
download I would like to automate. Normally, I would have to paste the
address in Internet Explorer's address bar, click 'Save' when the File
Download dialog box pops up and then indicate a local disk location
when the Save As dialog box appears.

So, the pseudo code would be something like

Open text file containing URL's
Retrieve URL from text file
Open link
Save file to specific location on local disk
Retrieve remaining files
Close text file containing URL's

If I could accomplish this with a simple script that would be nice but
I do have Visual Basic 2005 Express and Visual Basic 6.0 to work with
if needed. No login is needed to access these files.

My system

Windows XP Pro SP2
Intel 2.8 GHz with 1.25 GB RAM
Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
.Net Framework ver. 2.0.50727.42

Thanks again, Steve

Jan 15 '07 #3
These are great resources, thanks for the help!

Jan 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
25
by: MLH | last post by:
In an earlier post entitled... "A97 closes down each time I open a particular report" it has been suggested that I rebuild problematic table - one in which some corruption has occurred. I...
16
by: matt | last post by:
I have used some free code for listing files for download, but I want to send an email to the administrator when the file has been downloaded. I have got some code in here that does it, but it will...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
21
nathj
by: nathj | last post by:
Hi, I am currently working on a new site that offers various files for download. The file information is stored in a MySQL database and the page is produced in PHP depending on how the user got...
3
by: chiinook | last post by:
I have built a fairly simple database to manage contact information for about 300 clients. Some of these have requested that I send them our publications by email rather than post. I have created a...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.