Provide standard progress dialog for file operations


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.