How to Copy Multiple Files from One Directory to Another?
To copy multiple files simultaneously, we have another command and many option associated with it. Follow the bellow steps to copy all files and directories to another directory or drive.
Step 1: Make sure you have administrator access to run these command.
Step 2: run the following command to copy from one directory to another. Replace <source> and <destination> with current directory location from where you want to copy and location where you want to paste.
xcopy <source> <destination> /s /e
Available Options
Parameters |
Description |
---|---|
<source> |
Give you the file name and location of the file you want to copy. |
<destination> |
Give you the directory name and location of the destination where you want to paste the file. |
/w |
Display the message and wait for your response. Press any key to begin copying file(s) |
/p |
It will ask you where you want to create a destination file. |
/c |
It specifies to ignore the error if occurs. |
/v |
It will verify each file is same as the source and destination file. |
/f |
displays the source and destination of the each file. |
/g |
Generate a list of files to be coppied. |
/s |
copies the directory and sub-directory unless it is empty. |
/e |
Copies all subdirectories does not check whether they are empty or not. |
/r |
It will copy only read-only files. |
/h |
copies hidden files. |
/z |
Copies over a network in restartable mode. |
/? |
Display the help. |
How to Copy files from one Directory to another using CMD?
In this digital world, When everyone is moving towards CLI. People want to share files and directories using the command prompt or “cmd“, which helps them to share files easily and faster. Many people are stuck in it, because of a lack of knowledge in CLI. This article will help you to get rid of the challenges faced while copying files and interacting with the “Command Line Interface”.