Is there a way to combine 2 “FileSystem.CopyDirectory” statements so I get only one progress window? I’m using the below 2 statements in my C# application. It works fine, but It give 2 progress windows one after the other for each statement. Is there a way to have only one progress bar windows that handle both statements… And therefore calculates the time for both as well?
FileSystem.CopyDirectory(@"C:\test\HP1", @"c:\test\HP3", UIOption.AllDialogs);
FileSystem.CopyDirectory(@"C:\test\HP2", @"c:\test\HP4", UIOption.AllDialogs);

Thanks.
No, you can’t with the built-in methods. The .Net wrapper of
SHFileOperationonly deals with one object at the same time.You could use the COM
IFileOperationinterface, but you’ll have to build your own .Net wrappers. If you’re interested, this could help.