G
Guest
Hi, all. I have a networking question, really. I have this line of code:
my.computer.network.downloadfile("\\1.2.3.4\c$\file.txt", "c:\ifle.txt",
"user", "pass")
When I run it, I get an access denied error from the framework.
If I go to the run menu on my workstation, and type:
\\1.2.3.4\c$\
And type in my credentials in the network dialog box, THEN run my code, it
works.
Now, in a certain way this makes sense. I just don't understand totally how
DownloadFile is coded under the sheets, and I probably need to use the
System.Net classes to pass the credentials a different way.
But if someone could give me a heads up as to how, I would appreciate it.
Thanks!
S
my.computer.network.downloadfile("\\1.2.3.4\c$\file.txt", "c:\ifle.txt",
"user", "pass")
When I run it, I get an access denied error from the framework.
If I go to the run menu on my workstation, and type:
\\1.2.3.4\c$\
And type in my credentials in the network dialog box, THEN run my code, it
works.
Now, in a certain way this makes sense. I just don't understand totally how
DownloadFile is coded under the sheets, and I probably need to use the
System.Net classes to pass the credentials a different way.
But if someone could give me a heads up as to how, I would appreciate it.
Thanks!
S