Given two directories "C:\T" (the source/working directory) and "G:\T" (the destination/backup directory). Executing:
copy /z /w /u /y c:\t g:\t
What happens to read-only files in the destination depends upon if the corresponding file exists in the source director.
copy /z /w /u /y c:\t g:\t
What happens to read-only files in the destination depends upon if the corresponding file exists in the source director.
- If the corresponding file exists in the source directory, the destination file is updated and the read-only attribute is removed.
- If the corresponding file does not exist in the source directory, the copy command indicates that the destination file is deleted without actually deleting it nor changing its attributes.
Last edited: