I'm having trouble trying to create a batch script to copy a file from source A to source B, but need to copy the newest file by date with a file size that is larger than 1KB. It also need to copy a file from source A and overwrites a file that resides in source B.
I use the follow script below as example how i'm setting it up.
xcopy E:\sourceA\testA_* /DA C:\sourceB\TestB.txt /Y
I don't know how to add the command to grab a file that is larger than 1KB. Any help on this would be greatly appreciated. Sorry scripting is not my thing and new at it.