Copy the contents of one file to another (Windows Command Prompt)
Copying the contents of one file to another in Windows Command Prompt (CMD). Two variants:
Copy by TYPE command
TYPE "FILE1.txt" > "FILE2.txt"
Copy by COPY command
COPY /Y "FILE1.TXT" "FILE2.TXT"
Note: The /Y switch of COPY command is used to suppress the "Overwrite FILE2.TXT? (Yes/No/All):" confirmation prompt.
Links
- TYPE ss64.com/nt/type.html
- COPY ss64.com/nt/copy.html
Operating systems
- Windows