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. Visual Basic
  4. vb.net code to copy file from remote computer

vb.net code to copy file from remote computer

Scheduled Pinned Locked Moved Visual Basic
csharpsysadminhelptutorial
3 Posts 3 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.
  • M Offline
    M Offline
    Member 4504891
    wrote on last edited by
    #1

    i know that file.copy(sorce,destination) used to copy a file , but its work well locally but for remote computer it gave a permission error.when i write "\\server\d$\softwares". please guide me?

    Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan

    H D 2 Replies Last reply
    0
    • M Member 4504891

      i know that file.copy(sorce,destination) used to copy a file , but its work well locally but for remote computer it gave a permission error.when i write "\\server\d$\softwares". please guide me?

      Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan

      H Offline
      H Offline
      HemJoshi
      wrote on last edited by
      #2

      Do you have given permision to this folder "\\server\d$\softwares"? Give access to both source and destination folder?

      1 Reply Last reply
      0
      • M Member 4504891

        i know that file.copy(sorce,destination) used to copy a file , but its work well locally but for remote computer it gave a permission error.when i write "\\server\d$\softwares". please guide me?

        Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You're going to need to know exactly how and why Windows networking works in order to do stuff like this. You're getting this error because the account your code is running under (yours!) does not have write permissions to the D$ share on the target machine and/or the softwares folder under it. This can be because the machines are in networked in workgroup, where each machine has it's own list of accounts it trusts. Or, it could be, even though the machines are part of a domain, your account doesn't have permissions to that share/folder.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        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