How to copy a directory or folder
[Pages:4]3/20/2016
How to copy a directory or folder.
How to copy a directory or folder
Microsoft Windows users MSDOS users Linux and Unix users
Microsoft Windows
To copy a folder in Microsoft Windows, follow the steps below. When copying a folder in Windows, everything in the folder including all files and subdirectories will be copied.
1. Locate and highlight the folder you want to copy.
2. Rightclick the folder and select Copy or click Edit and then Copy. 3. Move to the location you want to place the folder and all its contents
and click Edit and then Paste or rightclick and then click Paste.
Tip: Once a file has been copied, it can be pasted anywhere on the computer, including the Desktop, another folder, or a drive.
Tip: You can also use the keyboard shortcuts to copy and paste files on the computer. For
1/4
3/20/2016
How to copy a directory or folder.
example, you could highlight any file and press Ctrl + C to copy the file. Once copied, you can move to where you want to paste the file and then press Ctrl + V to paste the file.
? How to select or highlight multiple files and folders?
MSDOS and Windows command line
To copy a directory in MSDOS, use the MSDOS xcopy command. Below is a basic example with each of the steps to do this in MSDOS. If you need additional information about the xcopy command or additional examples, see the above xcopy command page.
Note: By default, the basic xcopy command only copies files in the directory you specify as the source directory. You must use the /E option to copy subdirectories within the source directory as well.
Copy a directory and contents
xcopy c:\example c:\example2
In the above example, the directory "example" is copied into a new directory called "example2".
Copy the contents of a directory into another directory
1. Move to the directory of where you want to copy the directories and subdirectories. In the example below, we will be moving to the temp2 directory using the cd command.
cd\temp2
2/4
3/20/2016
How to copy a directory or folder.
2. Once in the directory, use the xcopy command to copy another directory's subdirectories and contents. In the example below, we're copying the "temp3" contents into the "temp2" directory. Keep in mind that this will not copy the actual directory "temp3". Just the files and subdirectories in the temp3 directory will be copied.
xcopy c:\temp3 /e
Once the above steps have been completed, everything should be copied into the temp2 folder.
Copy a directory with a space in the name
Tip: When dealing with a space in a file or directory, you always surround it with quotes.
xcopy c:\test "c:\space test"
In the above example, the directory "test" is copied into a new directory called "space test".
Linux and Unix
To copy a directory with all subdirectories and files, use the Linux and Unix cp command. Below is an example command of how you would use the cp command to copy files. Additional information about this command and other examples can also be found in the above cp link.
cp r /home/hope/files/* /home/hope/backup
3/4
3/20/2016
How to copy a directory or folder.
In the above example, the cp command would copy all files, directories, and subdirectories in the /home/hope/files directory to the /home/hope/backup directory.
? 2016 Computer Hope Legal Disclaimer Privacy Statement
4/4
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- list of ms dos commands
- copying your repair dvd data to your hard drive
- copy that using sas to create directories and duplicate files
- robocopy only copy new changed files spiceworks community
- chapter 11 advanced batch files
- batch file to list all files in a directory and subdirectory
- pros and cons of x command v2
- introduction to scripting edinboro university of
- how to copy a directory or folder
- ch 7 using attrib subst xcopy doskey and the text editor
Related searches
- how to select a college or university
- how to get a copy of ged
- how to determine a function or not
- how to copy a shape in illustrator
- how to copy a hyperlink path
- how to copy and paste a hyperlink
- how to copy a directory linux
- how to copy a file in linux
- how to copy a file
- how to create a folder in outlook
- how to copy and paste a url
- copy a directory python