Which of these command lines will copy a file and overwrite any destination files with the same name, without any message or warning?
A) copy /y temp.doc \temp
B) copy /v temp.doc \temp
C) copy temp.doc \temp /ignore
D) xcopy temp.doc \temp
E) Instead of a copy, simply memorize every word of the document
The answer: A) copy /y temp.doc \temp
The copy command uses the /y flag to suppress the normal prompts that occur when you overwrite an existing destination file.
Want to know more? Watch “Command Line Troubleshooting.”
The Windows command line can be a powerful troubleshooting environment if you know what to type. In this video, you’ll learn the important commands that will allow you to manipulate files, format disks, troubleshoot the network connection, and much more.