How can i get access to unshared folder
I have an unshared fol开发者_开发知识库der on server and i want to access to it from clients by c# code.Is there any way to do this? If yes how?
please help thanks in advance
If you are a admin (or domain admin) then you can use the implicitly shared C$.
If the file is at 'c:\foo\bar.html' on server named myserver, then try this:
\\myserver\c$\foo\bar.html
Note that this only works when you are an administrator of the server.
If it's not shared, then you can't. - the server owner / admin chose (implicitly or explicitly) to not allow clients from other machines to access it. You'll need to contact the server owner to get the folder you need shared (possibly with some ACLs to limit who can access it).
精彩评论