Does anybody know the command to copy a simple text file from one directory to another in your file system? I know its pretty basic but having real problems, Thanks
Does anybody know the command to copy a simple text file from one directory to another in your file system? I know its pretty basic but having real problems, Thanks
You can copy the file from one directory to other using the following command.
Code:cp sourcedirectoryname/sourcefilename destinationdirectory
in msdos terminal it's VERY different: (note the good old uncomfortable backslash)
copy sourcedirectoryname\sourcefilename destinationdirectory
A rename would be even better as long as it's on the same drive.
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
I'd suggest this discussion is misplaced in the C programming forum. The method to copy a file from the command line varies between operating systems and, to some extent, between command line interpreters (aka shells).