Question: how to copy data from one file to another in cmd?
Answer: Press Windows + R key combination (or click Start) to start Run.
Type cmd and hit OK in the box to launch Command Prompt.
At the prompt, type copy c:\workfile. txt d: and press Enter to copy the file named “workfile. txt” on the root of C drive to D drive root.