January 13th, 2013, 05:33 AM
Help with command line interface
I'm currently going through an online program designed to teach me how to use the windows 7 command line interface.
In my desktop, I have two folders, A & B. I'm being asked to copy a txt file from folder A to folder B. I don't know how to do this with just the cp command.
January 13th, 2013, 06:17 AM
I bet you're having problems because cp isn't a Windows command.
Can't be that hard to get it wrong...
copy source destination
January 14th, 2013, 03:26 AM
And when I do that, all I do is make a copy of the file, but in the same folder. It doesn't move it into the other folder I want it to.
Originally Posted by requinix
January 14th, 2013, 03:43 AM
So make the destination include the path to the folder where you want it copied. You can pass in entire path structures to copy (and practically every single file command), not just the names of the files.
January 14th, 2013, 11:14 PM
There is pretty extensive online help about using the command line in windows help. You can usually enter <command> /? to get immediate help on the command in question too. If the help scrolls, try
to get a paged output
<command> /? | more
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi