copy command to copy file in command prompt code example Example: copy command in cmd COPY "filename" /Y to overwrite the file in destination