Xcopy batch file behavior
Posted
by piagetblix
on Super User
See other posts from Super User
or by piagetblix
Published on 2010-06-09T13:51:53Z
Indexed on
2010/06/09
13:53 UTC
Read the original article
Hit count: 255
xcopy
I have the following backup batch file:
xcopy C:\test.txt \server\Data\user\"data test" /e /y /i
The issue is why does it not only copy the file listed but proceeds to copy the whole root directory? When i remove the switches it only copies the file. There is nothing in the description of those switches that seems to cause the behavior... They are there because I'm picking up where someone else left and all the batch files use these 3 switches.
Thanks
© Super User or respective owner