HI all. Hope that you are well. In my previous post I shared some tips and tricks about the DOS command. Now in this post I’m going to share some more tips which may be helpful for you.Lets start,
Using DOS command
You can use XCOPY command to copy a file from one directory to another directory. Lets have a example for a clear a clear concept. We have a file named nn in a directory C:\users\Himadri\OneDrive\Documents. No we want to copy that files to another directory which is, C:\users\Himadri\OneDrive. Then just type the command,
XCOPY C:\users\Himadri\OneDrive\Documents C:\users\Himadri\OneDrive .
And press enter. A message will appear after successful copying.
Create a directory as you copy file
If you think that during the copy of the file, you didn’t created the desired directory for the destination file. Then don’t worry. Just use the copy command i’ve provided. It’ll automatically create a directory. and copy your items.
Changing the name of a directory
Sometimes it may happen that you need to change the directory name, Lets consider that we will change the name Documents to newDocuments.
Then can use the commands,
Please remember that, to rename a file REN command is used and to remane a directory MOVE command is used.
Leave a Reply