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 / C++ / MFC
  4. CopyFile

CopyFile

Scheduled Pinned Locked Moved C / C++ / MFC
algorithmssecurity
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.
  • R Offline
    R Offline
    RobJones
    wrote on last edited by
    #1

    Hello, I'm trying to find a function where you could Copy a file from a UNC path to a UNC path and be able to supply the function with a domain\user and password. I have been searching MSDN for the past couple hours with no luck. I know if you simply supply a UNC path it will prompt for authentication but I want to automate this. Thanks for any suggestions, Rob

    Whoever said nothing's impossible never tried slamming a revolving door!

    D 1 Reply Last reply
    0
    • R RobJones

      Hello, I'm trying to find a function where you could Copy a file from a UNC path to a UNC path and be able to supply the function with a domain\user and password. I have been searching MSDN for the past couple hours with no luck. I know if you simply supply a UNC path it will prompt for authentication but I want to automate this. Thanks for any suggestions, Rob

      Whoever said nothing's impossible never tried slamming a revolving door!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Create the connection between the two computers using NetUseAdd(), then call CopyFile().


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      R 1 Reply Last reply
      0
      • D David Crow

        Create the connection between the two computers using NetUseAdd(), then call CopyFile().


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        R Offline
        R Offline
        RobJones
        wrote on last edited by
        #3

        Good idea, I was thinking about that earlier, but for some reason I thought you needed to assign a drive letter (which i didn't want to do) but i see now that you don't. Thanks, Rob

        Whoever said nothing's impossible never tried slamming a revolving door!

        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