|
-
April 20th, 2005, 04:44 PM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|