Results 1 to 3 of 3

Thread: how can i get the path of a downloaded file?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    India
    Posts
    15

    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 !!!!!!!!!!

  2. #2
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    What about the FileName Function, does that work?

    VB Code:
    1. Dim path as String
    2. 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

  3. #3
    Addicted Member
    Join Date
    Mar 2000
    Location
    Suffolk. UK
    Posts
    162
    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
  •  



Click Here to Expand Forum to Full Width