Solved

Internet Download

Posted on 2001-06-13
4
183 Views
Last Modified: 2013-11-14
How do I download a file and place it in a specific folder without user intervention?  For example, I have a file http://www.mydomain.com/interestrates.mdb that I need to download to the application path.
0
Comment
Question by:northeyk
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 100 total points
ID: 6187037
Add internet transfer control to your project.

Private Sub Command1_Click()
    Dim bytFile() As Byte
    bytFile = Inet1.OpenURL("http://www.mydomain.com/interestrates.mdb", icByteArray)
    Open App.Path & "\interestrates.mdb" For Binary As #1
    Put #1, , bytFile
    Close #1
End Sub
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6187077
I would wrap the MDB into a self extracting EXE.  Within WINZIP's Self Extractor you can specify whether you want to run the extractor automatically, also where you want the file to be extracted to.  IMHO this would be the best way.

Cheers
0
 

Author Comment

by:northeyk
ID: 6187475
Works great.  Thanks.

Dave.

I can't use a self-extracting zip file because I don't know the application path.  I use InstallShield and the user can change the destination folder.  Thanks anyway.
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 6187614
You're welcome.  Happy to help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to measure sizes and angles in scanned images ? 3 75
Excel Automation VBA 19 88
Microsoft volume license for installation 11 39
VBA - If Bookmark = "XXBOOKMARKXX" then 15 40
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question