0

I'm using the command echo f | xcopy /f /y srcfile destfile as found here, and it works great, but it still shows up.
I've tried prepending 1>nul and 2>nul to completely suppress it, but that had undesired results. I do need to use xcopy and I do need to specify the target filename.

Community
  • 1
  • 1

1 Answers1

1

Try using

@echo off
echo f | xcopy /f /y srcfile destfile >nul
Bali C
  • 30,582
  • 35
  • 123
  • 152