Create copy desktop files to D drive

This code will help you to copy all your desktop files to desired drive. You can create a jar file of this code and then create a .bat file and you can schedule task to copy all your desktop files on required intervals.