I am trying to run the following command in Windows CLI:
XCOPY Z:\.vimrc %USERPROFILE%\_vimrc /H
/H part needs to be there because
Z:\.vimrc is a hidden file.
When I run the command above, I get the following message:
Does C:\Users\Matt\_vimrc specify a file name or directory name on target (F = file, D = directory)?
This command will eventually be part of a BAT file and I don't want that prompt. The answer to it is always "F".
_vimrc were named the same, I could just run one of these commands and be done with it:
XCOPY Z:\.vimrc %USERPROFILE%\ /H XCOPY Z:\.vimrc %USERPROFILE% /H /I
But they are not, so I can't. How do I suppress that message?
I know I could copy it with the same file name and then move it, but c'mon, does this really have to be two commands? I'm just copying a file.
Note: When there is already a
%USERPROFILE%\_vimrc file, the message does not appear.