Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Save Dialog Box inside the WriteAllBytes, Possible?

Save Dialog Box inside the WriteAllBytes, Possible?

Scheduled Pinned Locked Moved Web Development
sysadminhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hifiger2004
    wrote on last edited by
    #1

    Hi Guys, I have just copied the source code below from other sites. This codes will download a textfile from ftp server with network credentials. There's no problem in this code, just want to have a some kind of "Save Dialog Box". Because right now it is hard coded "C:\Sample.txt". How would I prompt the Save Dialog box, so that the target directory is dynamic? Codes below: Try Const ftpURI = "ftp://309..." Dim filename As String = ftpURI & "Sample.txt" Dim client As New WebClient client.Credentials = New NetworkCredential("anonymous", "password") My.Computer.FileSystem.WriteAllBytes("C:\Sample.txt", _ client.DownloadData(filename), True) MsgBox("File downloaded!") Catch ex As Exception MsgBox(ex.ToString) End Try

    hifiger2004

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups