-1
默认路径是C:\Users\<.YourUser>\AppData\Local\Packages
。 我想将它替换成PC上的C:\Users\<.YourUser>\Desktop
。我怎样才能做到这一点?如何将默认路径替换为其他路径?
StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting)
请参阅http://stackoverflow.com/questions/634142/how-to-get-a-path-to-the-desktop-for-current-user-in-c – artm
你想获得路径到桌面(如上面评论中的链接)或者你想获得特定的文件夹和“桌面”只是样本? –
是的。那样的Environment.GetFolderPath(Environment.SpecialFolder.Desktop); –