Xcopy is a powerful version of the copy command; has the capability of moving files, directories, and even whole drives from one location to another.
for eg: You want to copy all files from xyz folder which is on C: drive to abc folder which is present/not present on D: drive! just use following command in command prompt!
if the destination folder is not present it will ask you to create it!
xcopy c:\xyz d:\abc /s
xyz is source folder
abc is the destination folder
/s : Copies directories contents
after copying to dest. folder you can delete the source folder. 😉
c:\>robocopy [source file or folder] [desitination]
single command that can copy files and folers both
c:\>robocopy [file or folder] [hard disk of \\server\path]
can copy on both server and hard disk
c:\>robocopy /s [sorce folder] [destination]
copies all directory excluding empty one
c:\>robocopy /e [sorce folder] [destination]
copies all directories including empty one
c:\>robocopy /z [source file/folder] [destination]
copies with restart/resume capability
c:\>robocopy /zb [source file/folder] [destination]
restarts or resumes copy
c:\>robocopy /move [source file/folder] [destinatio]
copies source to destination then deletes sorce(much safe kind of operation than original move command)
In all if you want to copy type following command,
c:\>robocopy /e /z [source] [destination]
And if you want to move then,
c:\>robocopy /move /z [source] [destination]
if it hangs in between resume by replacing /z by /zb
And if you just want to create directory structure,
c:\>robocopy [source] [destination]
You can use xcopy command for moving files from one drive to another. For example xcopy c:\source folder :\destination folder /s This command copies the directories content.
@Ankita Katdare · Apr 10, 2014
@Kaustubh Katdare · Jul 11, 2012
@Akhilesh Garud · Jul 15, 2014