The following is the complete code for the wrapper example, and I did put it on PoSHcode.org , the PowerShell code repository, :
As you can see below you can also use the Code in the Repository on your blog by using the provided link (Update try to fix codeexample output)and there are Cmdlets to retrieve the PowerShell code
And now you can dig into the details session like this :
I tried to create a in use error by opening a file with EXCEL but seems 2007 does not lock it anymore ;-), but you can create a good test log by copying your userprofile.
at the end of the code are some more examples of using the $RoboStatus object for analizing the log.
If you find this code usefull and have some improve them feel free to post and updated version of it on PoSHcode.org .
In the next post I will add a PowerShell GUI wrapper to create Robocopy commands from a form, and a small forms lib .
Enjoy,
Greetings /\/\o\/\/