I want to run a Robocopy command from my code but it dosn't want to run.
Here's my code:
ProcessStartInfo startInfo = new ProcessStartInfo("CMD.EXE");
startInfo.Arguments = string.Format("/C ROBOCOPY {0} {1} /E /MT:32", srcPath, dstPath);
Process.Start(startInfo);
I tried this :
Process.Start("CMD.EXE", string.Format("/C ROBOCOPY {0} {1} /E /MT:32", srcPath, dstPath));
But it also dosn't work.
I don't know why it only run the cmd with no arguments but when i copy/paste my command on the cmd it work.
I have seen other topic talk about this but i none of them i found a fine answer.