You just need to make a small change to your program.Instead of writing just XCOPY C:\......you writeshell ("XCOPY C:\Tally\*.* D:\Tally\)