Hello BillGatesFan,
There are 2 solutions
1) Using Win32 API to create logon session "LogonUser" method
2) using Win32 API WNetAddConnection3
Google for samplehttp://groups.google.com/groups/search?q=dotnet+file+share+pass+crede...
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:
http://spaces.live.com/laflour
Team blog:
http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
B> I want to be able to connect to a file share in C# given a username
B> and password.
B>
B> Any help would be appreciated. Code examples welcomed
B>