?
Solved

Internet Download

Posted on 2001-06-13
4
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

752 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