I found a nice tool Easy RoboCopy that helps with the command line and could be interesting if you want to use robocopy in batch file.

But I’d like to use Robocopy in my programs without having to re-create the command line every time. So I’ve created this function to make it simple to use robocopy and to set the switches how I want them to be.

Have a look at the script and I’d appreciate feedback. It’s still a work in progress adn has a lot of consolewrite commands but it does what I want now and I know that is when I tend to go cold on a project and never finish it...sigh... so if I get some feedback on this it will give me some impetus to polish it.

Read the header for how to use it and the test program for examples. If you have any questions please let me know.