Posted By

TheBarrett on 09/03/11


Tagged

io windows c#


Versions (?)

Provide standard progress dialog for file operations


 / Published in: C#
 

URL: http://msdn.microsoft.com/en-us/library/cc165446.aspx

  1. // Requires project reference to Microsoft.VisualBasic
  2. using Microsoft.VisualBasic.FileIO;
  3. class FileProgress
  4. {
  5. static void Main()
  6. {
  7. string sourcePath = @"C:\Users\public\documents\";
  8. string destinationPath = @"C:\testFolder";
  9. FileSystem.CopyDirectory(sourcePath, destinationPath,
  10. UIOption.AllDialogs);
  11. }
  12. }

Report this snippet  

You need to login to post a comment.