Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,
Last Day I Googled For "How To Open Shared Folder On Network" Using C# Code. I Will Give User Name & Password in C# Code. so that files in that folder can access with out giving username & password.
Posted
Comments
[no name] 22-Jun-11 0:19am    
What is the question??
[no name] 22-Jun-11 0:38am    
what kind of solution you need.
Uday P.Singh 22-Jun-11 1:52am    
what are you trying to do?

 
Share this answer
 
2 things:

1. Run your program in the credientials of the account having access to network folder

2. use UNC for network path
 
Share this answer
 
I did a .bat file with this line in it.

"NET USE \\Computer\Folder Username Password"

then a Process.Start on the file when application starts.
After that your computer got access to the file, not just your application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900