please help ms

Status
Not open for further replies.

Danauz1

Prominent
Jul 21, 2017
7
0
510
When using MS Windows command line interface
 
What command would you use to copy a file named sales.docx to a new file called salesbackup.docx
 
Solution
Those two commands are wrong here so if they're written that way in the Command form, both will fai but we're not giving up that easily. :D

You may not be in the folder where the document is filed so the syntax might have to include that information to tell the system what to do.

If you arrived at the C:\Users\Documents folder and you can see the filenames oincluding the one named sales.docx, the syntax you're using should work. If you're outside the Documents or whatever folder the file shows up, you will need to include the name of that folder.

Just stop at the C:\ prompt and type
ren c:\users\documents\sales docx c:\users\documents\salesbackup.docx, assuming that is the complete path. Copy cannot include the renaming...
Why do it the hard way when it's so simple in File Explorer?

Anyway, open the Command form - Windows key plus R then type cmd into the Run box.

At the Command Prompt, start to navigate to your docx folder. Use the command

cd\ c:\users\{your username}\documents\sales
When you get there, type
ren sales\docx salesbackup.docx
hit the Enter key and you've finished..
 
It gets all of us like that at first but you will conquer it in the end.

Remember, every command can be followed by /? to bring up the sub-commands and which does what. Once you're used to those subs, you can write longer commands without having to refer back to them.
 
I did pick up on the question, Alabalcho but asssumed the OP didn;t know it was possible to rename and so having only one copy of the same file.

@Danauz1, the syntax has to be precise to the letter and getting something wrong is usually the cause of a problem when we start off in DOS.
 

Danauz1

Prominent
Jul 21, 2017
7
0
510
thanks very much saga I cant figure it out guess ill have to hit the teacher up I've tried ...
copy
ren
rename
ren sales\docx salesbackup.docx
copy sales.docs backupsales.docx
surely there couldn't be anymore ways to do it lol what is the actual applicable purpose anyway surely it'd be easy as you said to just go file explore as you said
 
Those two commands are wrong here so if they're written that way in the Command form, both will fai but we're not giving up that easily. :D

You may not be in the folder where the document is filed so the syntax might have to include that information to tell the system what to do.

If you arrived at the C:\Users\Documents folder and you can see the filenames oincluding the one named sales.docx, the syntax you're using should work. If you're outside the Documents or whatever folder the file shows up, you will need to include the name of that folder.

Just stop at the C:\ prompt and type
ren c:\users\documents\sales docx c:\users\documents\salesbackup.docx, assuming that is the complete path. Copy cannot include the renaming process unless you put it in another folder.
 
Solution
Status
Not open for further replies.