What does "f|" do in this bat command
echo f|xcopy /Y /v "foo.exe" "%TargetFile1%"
What does "f|" do in this bat command
echo f|xcopy /Y /v "foo.exe" "%TargetFile1%"
f|
are not modifiers; f
is what echo
sends to standard output, and |
is a pipe, which redirects the standard output of echo
to the standard input of xcopy
. What effect this has is unclear and may be none at all; I can't find anything that suggests that xcopy
prompts for anything from standard input.