copy a file command line code example Example: copy file command line copy c:\data\file1.doc D:\backup\file2.doc