c# - Robocopy Success/Failure reported via Window's application -


thanks in advance time.

i'm working on application automate of things have check each day.

one of them making sure of our daily robocopies took place successfully.

i'm having issues figuring out best way communicate program. i've looked various exit codes robocopy uses useful, there anyway output file, , there anyway know backup associated with?

sorry if vague, please let me know of other info of use.

thanks, will

if start robocopy process application check exit code there.

process myprocess = null;  // start process. myprocess = process.start("robocopy ....");  myprocess.waitforexit(1000);  console.writeline("process exit code: {0}",  myprocess.exitcode); 

http://msdn.microsoft.com/en-us/library/system.diagnostics.process.exitcode(v=vs.110).aspx


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -