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 - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -