CopyFileEx with multiple files, but only one copy dialog

你。 提交于 2019-12-01 06:53:40
Hans Passant

Yes, this is possible with the IFileOperation shell interface, available since Vista. A managed class wrapper for this COM interface is available in the December 2007 issue of MSDN Magazine.

The Article is titled ".NET Matters: IFileOperation in Windows Vista"
The sample code is still available here.

Fall back on your existing code if it also needs to run on earlier versions of Windows.

Set the MultiSelect property of your OpenFileDialog to true.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!