2

I have done with xcopy to copy files from one folder to another:

Process proc = new Process();
//proc.StartInfo.UseShellExecute = false;
//proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
proc.StartInfo.FileName = @"C:\WINDOWS\system32\xcopy.exe";
string arg = @"R:\TREM " + fbd.SelectedPath + " /E /I /Y";
//proc.StartInfo.Arguments = @"C:\source C:\destination /E /I /Y";
proc.StartInfo.Arguments = arg;
proc.Start();

Now I want to see the exact small window(on copy time) when we copy anything using windows 7 interface, like Ctrl+C, Ctrl+V. Is it possible? If yes then how?

Cool Brain
  • 647
  • 2
  • 8
  • 14

1 Answers1

4

You need to use IFileOperation interface of Shell interfaces.

Example -> IFileOperation in Windows Vista

Community
  • 1
  • 1
Tilak
  • 30,108
  • 19
  • 83
  • 131