我无法将UWP与公共共享文件夹连接到另一个系统。
示例:
new CredentialCache().Add(new Uri(@"\\[IP]"),
"Basic",new NetworkCredential("[USER]", "PASS]", "[IP]"));
或
new CredentialCache().Add(new Uri(@"\\[IP]"),"Digest",
new NetworkCredential("[USER]", "[PASS]", "[IP]"));
或
new CredentialCache().Add(new Uri(@"\\[IP]"), "SHARED",
new NetworkCredential("[USER]", "[PASS]", "[IP]"));
var files = Directory.GetFiles(@"\\[IP]\[SharedName]");
或
var folder = await StorageFolder.GetFolderFromPathAsync(@"\\[IP]\[SharedName]");