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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -