Updated implementation, and added a Windows .bat example.
Instead of using stdin the result is now written to a file, as Windows has some issues with reading stdin from a script.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1427 59da171f-624f-0410-aa54-27559c288bec