.NET How to copy files using the Copy Files dialog box in Windows

.NET How to copy files using the Windows Copy Files dialog box. I need to bulk copy multiple files. Is there any .NET 2.0 library / method that allows me to do this in cross-platform mode without calling libraries of a specific Windows platform.

Thanks in advance.

+3
source share
6 answers

To use the Copy Windows Files dialog box, you will need to call the "library specific Windows platform".

+1
source

SHFileOperation, .NET. Microsoft.VisualBasic.dll Microsoft.VisualBasic.FileIO.FileSystem.CopyDirectory(). , , .

+12

Google IProgressDialog - , ,

+1

, Windows API

, : Windows , .

0

.NET .

:

  • VS2005, VS2005ImageLibrary.zip, C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary, 64- C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary 32- .

  • zip GIF . .AVI.

  • GIF.

  • . GIF image .

  • , , .

  • , , .

0

The problem is that this is actually not a "Windows file copy dialog", it is an Explorer dialog box. Therefore, he should find a way to programmatically control Explorer. (It may be possible through COM or WMI)

-3
source

Source: https://habr.com/ru/post/1739483/


All Articles