You’re creating a batch file that copies a group of files from one folder to another, but you don’t want the batch process to stop if a file is overwritten during the copy process. What command line option allows the copy command to overwrite files without any prompts?
A) copy /a
B) copy /n
C) copy /v
D) copy /y
E) This is why my hard drive is getting so cluttered.
The answer: D) copy /y
The /y option allows the copy command to overwrite files without prompting the user to verify the copy process. For obvious reasons, you should only use this command line options if you’re really sure about overwriting existing files! The /y is an answer of “yes” to the question about overwriting existing files.
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.