如何在Windows文件资源管理器中选择多个文件(How to select multiple files in windows file explorer)

编程入门 行业动态 更新时间:2024-10-18 18:20:19
如何在Windows文件资源管理器中选择多个文件(How to select multiple files in windows file explorer) // Set up the file picker. Windows.Storage.Pickers.FileOpenPicker openPicker = new Windows.Storage.Pickers.FileOpenPicker(); openPicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.PicturesLibrary; openPicker.ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail; //Filter to include a sample subset of file types. openPicker.FileTypeFilter.Clear(); openPicker.FileTypeFilter.Add(".png"); openPicker.FileTypeFilter.Add(".jpeg"); openPicker.FileTypeFilter.Add(".jpg"); //Open the file picker. Windows.Storage.StorageFile file = await openPicker.PickSingleFileAsync();

我想打开Windows资源管理器,选择多个图像,然后复制并粘贴到另一个文件夹。 但是,使用这个代码,它并没有帮助我。 enter code here

// Set up the file picker. Windows.Storage.Pickers.FileOpenPicker openPicker = new Windows.Storage.Pickers.FileOpenPicker(); openPicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.PicturesLibrary; openPicker.ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail; //Filter to include a sample subset of file types. openPicker.FileTypeFilter.Clear(); openPicker.FileTypeFilter.Add(".png"); openPicker.FileTypeFilter.Add(".jpeg"); openPicker.FileTypeFilter.Add(".jpg"); //Open the file picker. Windows.Storage.StorageFile file = await openPicker.PickSingleFileAsync();

I want to open Windows Explorer, select multiple images, and copy and paste to another folder. However, with this code I am using, it is not helping me. enter code here

最满意答案

请尝试使用多文件方法。

openPicker.PickMultipleFilesAsync()

Try the multiple file method instead.

openPicker.PickMultipleFilesAsync()

更多推荐

本文发布于:2023-07-23 18:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235645.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   多个   资源管理   器中   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!