The cp command does that.
copy file filecopy
copy command ofcource.. from command prompt.. copy <source file path> <filename> <destination file path> say u want to copy ram.txt from c: to d: copy c:\ram.txt d: and press enter..
copy in command line the command is: cp old_file new_file
Assuming oyu mean a regular file copy? The command would be 'cp.'
copy command is used to make a copy of file or copycon is used to write a file
The program to copy content on one file to another depends with the platform that you are using.
Tools executed from a command line have an .exe file extension and MMC Snap ins have .msc file extension.
In MS-DOS, the copy con command is used for the creation of files from the command line. From the command line enter "copy con" and the name of the file desired to be created.
You can use cp command to make a copy of a file. cp <file 1> <file 2> If you want to make a copy of the entire directory then use the recursive option cp -r <dir 1> <dir 2>
copy source_file.txt new_copy.txt