Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using secure resources in C#

Status
Not open for further replies.

0ddball

Technical User
Nov 6, 2003
208
GB
Simple one really. I have a network share I want to reference within my C# code.

So I have the UNC path //obiwan/share/accesslog.txt

Problem is, the 'share' share is passworded. How do I log into the file when the File.* commands only take a UNC path and that convention doesn't support the [tt]<user>:<pass>@<location>[/tt] form - at (at least it keeps claiming it doesn't).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top