|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DownloadFile give Acccess Denied when administrative share usedmy.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 "Bill Sempf" <sempf@newsgroups.nospan> schrieb: Did you already try 'File.Copy'?> 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. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> "Herfried K. Wagner [MVP]" wrote: Where in File.Copy would I pass in the credentials?> "Bill Sempf" <sempf@newsgroups.nospan> schrieb: > > 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. > > Did you already try 'File.Copy'? >
How to create a report (invoice)?
File operation with user-set wildcards Drag and Drop from Outlook to Vb.net RichTextBox DirectX rendered inside a control? problem save and reading from the registry Q: deleting relations Using SQLDataSource without a control? Problems with SaveAs Database Arrays please help me |
|||||||||||||||||||||||