簡體   English   中英

如何在Windows File Explorer中選擇多個文件

[英]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

請嘗試使用多文件方法。

openPicker.PickMultipleFilesAsync()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM