Hi all ...
I am trying to execute xcopy command from visual c# express 2005 . My code is as follows :
This keeps giving me error "Win32 exception was unhandled" File not found . Both source and destination directories exist. the same command gets executed if i try to execute it from command prompt .
I am trying to execute xcopy command from visual c# express 2005 . My code is as follows :
Code:
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"cmd.exe /c xcopy C:\Source C:\Destination /s");
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardInput = true;
psi.RedirectStandardError = true;
System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi);
Comment