How can I work with files in network directories on . NET?

Asked

Viewed 23 times

0

How do I access files present in network directories on . Net? Accessing local files is simple, I can do Directory.EnumerateFiles("C:\\", "*.*").

But Directory.EnumerateFiles("\\\\10.88.0.1\\rec", "*.*") is not valid.

How can I access files from other networks?

  • Possible duplicate of https://answall.com/questions/126403/c-i-o-na-rede?rq=1

  • Possible duplicate of https://answall.com/questions/130381/como-copiar-um-arquivo-da-rede-para-o-computador-usando-c?rq=1

  • very likely you are not using credentials to look at this article https://www.c-sharpcorner.com/blogs/how-to-access-network-drive-using-c-sharp

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.