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. C#
  4. File transfer on LAN..........

File transfer on LAN..........

Scheduled Pinned Locked Moved C#
csharpsysadminhelpquestion
3 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
    Nagraj Naik
    wrote on last edited by
    #1

    Hello friends, I have to create an application through which client can take backup of other machines on server machine(in LAN). So primarily I want to create server application which can copy simple text file from client machines(in LAN) and save them on server machine. I am new in .net and not getting how I should start?........I hope some experts can help me out. Please help me to solve this situation it's urgent..... Thanks, Nagraj.

    E 1 Reply Last reply
    0
    • N Nagraj Naik

      Hello friends, I have to create an application through which client can take backup of other machines on server machine(in LAN). So primarily I want to create server application which can copy simple text file from client machines(in LAN) and save them on server machine. I am new in .net and not getting how I should start?........I hope some experts can help me out. Please help me to solve this situation it's urgent..... Thanks, Nagraj.

      E Offline
      E Offline
      Eitsop
      wrote on last edited by
      #2

      The simplest method would probably be to do something like: File.Copy("\\\\pc1\\c$\\textfile1.txt", "\\\\server1\\backup$\\pc1textfile.txt"> Where pc1 is source pc and server1 is the server name. You might need to enumerate a few folders or files to determine if they exist. Good starting points are: File.Exists, Directory.GetFiles and Directory.GetSubFolders. Any help? Eitsop

      N 1 Reply Last reply
      0
      • E Eitsop

        The simplest method would probably be to do something like: File.Copy("\\\\pc1\\c$\\textfile1.txt", "\\\\server1\\backup$\\pc1textfile.txt"> Where pc1 is source pc and server1 is the server name. You might need to enumerate a few folders or files to determine if they exist. Good starting points are: File.Exists, Directory.GetFiles and Directory.GetSubFolders. Any help? Eitsop

        N Offline
        N Offline
        Nagraj Naik
        wrote on last edited by
        #3

        Thanks, As you suggest I find the solution in same direction. regards, Nagraj

        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