Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more:
Hi i want to get the root directories that shared on the server
in other words i want the directories under \\server\
i used netapi32 and its work only if i saved the security credentials before

i want a way to enter the credentials pragmatically and get the directories
Posted
Comments
Joan Magnet 4-May-15 6:26am    
Take a look at System.IO namespace.
Maciej Los 4-May-15 16:20pm    
What have you tried?
M. Daban 5-May-15 3:05am    
netapi32
&
http://www.codeproject.com/Articles/43091/Connect-to-a-UNC-Path-with-Credentials

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