none
如何设置FileSavePicker的保存位置为固定的盘符? RRS feed

  • 问题

  • 使用FileSavePicker保存文件,我想文件固定保存在D盘。

    有什么办法设置保存对话框的初始位置就一直在d盘?

    2019年4月25日 3:48

答案

  • 你好,

    目前来说,没有。除非使用权限,不然只能指定某些初始位置类似图片,音乐等。


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 lukiyii 2019年6月7日 10:11
    2019年5月1日 2:07

全部回复

  • 你好,

    FileSavePicker 的确可以设置初始位置,但是无法定位在D盘,只能定位在图片,音乐,视频等位置。


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年4月25日 7:36
  • 你好,

    FileSavePicker 的确可以设置初始位置,但是无法定位在D盘,只能定位在图片,音乐,视频等位置。


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    那UWP有方法可以让我导出文件的时候,只保存在D盘吗?

    保存到任意位置有权限限制,我又不想保存在c盘的固定位置。


    2019年4月26日 2:45
  • 你好,

    目前来说,没有。除非使用权限,不然只能指定某些初始位置类似图片,音乐等。


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 lukiyii 2019年6月7日 10:11
    2019年5月1日 2:07