Windows – is there any way to force copy? copy without overwrite prompt, using windows

command-linewindows

I want to write a list of windows commands(it's a long list) where it does all these magical things for me, but whenever I use copy, it stops to ask fro overwrite prompt. When I type yes, it overwrites the old file then just stops there.

How do I make it such that whenever the windows sees the copy command, it just overwrites the old file without that prompt?

Best Solution

You're looking for the /Y switch.