|> The sim[lest way to avoid the dumb question is to use a|
> final backslash.
> set dest=c:\files\
> Beyond that, for individual files and no need to create
> directory struct, you could use plain vanilla COPY.
I don't get it, if you put a backslash at the end ... you would be XCOPYing to a directory anyway, no ?
The whole issue is that the target is a file.
For me, it's a bug, since I consider XCOPY as a command to copy files AND directories, and it simply does not like the fact that a target is a file, it keeps on asking the obvious stupid question. Using COPY instead, is a bit of a lame excuse, escpecially since you know that XCOPY is relatively "low" on features, so any advice to use COPY instead, is rather silly, no ?!
You could better use Robocopy, even if not default in XP, just take it from the Microsoft site.
Anyway, the best bugfix I have for this problem, is to create the file before copying, ex.
echo dummy > target
xcopy source target
Asking MS to fix this bug, is useless, I guess, since they would say it's not a bug.