Reputation: 368
I notice 7zip and WinRAR that after it extracts from an archive, it executes a file copy with Windows Explorer's UI to move the files from the temp directory to the desired folder.
How will I execute file operations with Windows Explorer's UI?
Upvotes: 1
Views: 1334
Reputation: 18320
I don't think they use Windows Explorer. I think they just do it programmatically, like anyone would do:
My.Computer.FileSystem.CopyFile("C:\Users\Vincent\Test.txt", "C:\Test.txt", UIOption.AllDialogs)
The UIOption.AllDialogs
should show Explorer's copy progress dialog.
Read more: https://msdn.microsoft.com/en-us/library/ms127965(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.fileio.uioption(v=vs.110).aspx
Upvotes: 1