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. General Programming
  3. .NET (Core and Framework)
  4. copy file from server to localhost using ftp

copy file from server to localhost using ftp

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpsysadmin
2 Posts 2 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.
  • N Offline
    N Offline
    nbaranidharan
    wrote on last edited by
    #1

    dear all, i want to copy a file from server to localhost.in server my file is located in"D:\folder\myfile.txt".i want to copy/save that file int my localhost in"D:\myfile.txt".how can i do this using vb.net?please give me the code as soon as possible... by barani

    T 1 Reply Last reply
    0
    • N nbaranidharan

      dear all, i want to copy a file from server to localhost.in server my file is located in"D:\folder\myfile.txt".i want to copy/save that file int my localhost in"D:\myfile.txt".how can i do this using vb.net?please give me the code as soon as possible... by barani

      T Offline
      T Offline
      tarasn
      wrote on last edited by
      #2

      Here is fast and dirty solution using System.Net; ... ... WebClient webClient = new WebClient(); webClient.DownloadFile( "http://remotyeserver/myfile.txt", @"d:\myfile.txt" ); Do the same using ftp is more complicated - but this ftp library[^] can help DevIntelligence.com - My blog for .Net Developers

      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