How do I access remote shares
Hi,
How do I from server "A" access a share on server "B" in C#. In this case, I'm running code that cleans up the residue of deleted accounts. The program runs on server "A" and profiles, if they exist, are in a shared folder on server "B".
The following code returns a single instance of ".DS_Store" when I iterate through the FileInfo array (when what I looking for is a list of filenames).
DirectoryInfo dir = new DirectoryInfo("\\servername\sharename");
FileInfo[] files = dir.GetFiles();
How do I do it correctly?
Thanks,
Rob