Regarding your xcopy switches: you do not need to use both /S and /E. If you need to copy subfolders whether they are empty or not then use /E but if you want to leave empty subfolders behind then use /S. You have used /D but have not specified a date /D:m-d-y.