|
-
Apr 4th, 2003, 01:03 AM
#1
Thread Starter
New Member
how can i get the path of a downloaded file?

Hi,
I have a vb application. In one of the forms i have put a web browser control. This will be used to download my database file from the server using ...browser.navigate "myserver/mydb/mydb.mdb". This will open the save dialog box and start downloading the mdb file from the server.
Now how can my application know the path specified by the user to save the mdb file, so that the application can pick up data from this downloaded file for further processing ????????
Somebody pls help !!!!!!!!!!
-
Apr 4th, 2003, 06:30 AM
#2
Hyperactive Member
What about the FileName Function, does that work?
VB Code:
Dim path as String
path =cmdlgsave.FileName
Hope I could help,
Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Apr 7th, 2003, 10:32 AM
#3
Addicted Member
how about just downloading the file from a button, using something like this? Does it have to be a browser that you download the database from?
Dim iFile As Integer
Dim bBIN() As Byte
bBIN = Inet1.OpenURL("www.wherever.co.uk/download/data.mdb", icByteArray)
iFile = FreeFile
Open App.Path & "\data.mdb" For Binary Access Write As iFile
Put #iFile, , bBIN
Close iFile
This way at least you control where your database is downloaded to
Last edited by Ping; Apr 7th, 2003 at 04:00 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|