- May
- 22
- 0
I have not been able to get COPY to stop creating empty directories at the destination, even though I specify /F using the batch file shown here:
I formatted a USB thumb drive and plugged it in, where it became Drive J. Then I went to the folder containing TestZero.BTM, and typed "TestZero.BTM J". TCC then identified itself as v12.10 and then proceeded to create a gazillion empty folders on Drive J even though I told it not to via /F. <grrrr> Note that TCC did not copy any files at all, because none of the files on my Drive D has the Archive attribute set at this time. Perhaps that is key.
-- Nick
Code:
@REM F:\BACKUP\TESTZERO.BTM 30-May-11 09:28:29am
@REM ----------------------
@REM
@REM -- Archives Drive D to folder \Drive_D\ on Drive J
@REM -- Creates a bunch of empty directories, even though we specify /F
@VER
@COPY /B /E /K /M /S /F /X /Z D:\*.* %1:\Drive_D\
I formatted a USB thumb drive and plugged it in, where it became Drive J. Then I went to the folder containing TestZero.BTM, and typed "TestZero.BTM J". TCC then identified itself as v12.10 and then proceeded to create a gazillion empty folders on Drive J even though I told it not to via /F. <grrrr> Note that TCC did not copy any files at all, because none of the files on my Drive D has the Archive attribute set at this time. Perhaps that is key.
-- Nick