New
#1
Help with bat file (xcopy) on Win7
I have a batch file that copies some files from a win7 hard drive to a USB stick. Sample code:
mkdir G:\holderThis file works fine on any previous version of MS Windows to copy all the files in the targeted directory that are newer than those on the USB and it overwrites them. On Win7, it creates multiple folders (with the same name) each time you run it. So, after running it four times, there are four "holder" files on the USB.
xcopy C:\users\me\documents\sub\*.*/s/e/h/r/y/D G:\holder\*.*
Any idea why it does this and/or how to correct it?