CopyFile
-
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!
-
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!
Create the connection between the two computers using
NetUseAdd()
, then callCopyFile()
.
"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
-
Create the connection between the two computers using
NetUseAdd()
, then callCopyFile()
.
"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
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!