Copy multiple files in a Single Click

0 comments

                      Copy multiple files in a Single Click


Sometimes we have to copy multiple file from different locations and have to put it in a single folder. or sometimes we want to do that like copy images from many different locations and put it in a single folder but it is annoying specially if the file is large, you have to wait till copying of files finished and then you move to other files to copy, this is blocking your time , Right . So in this tutorial I will provide you the solution and it is very simple, you only need to change the file once and then save it. It will do the rest. so let's get started.


Step 1:

1. Copy the code given below and save it as .cmd file 

#------------------------------------------------------------------------------#

MD C:\Users\Desktop\targetfolder
XCOPY C:\Users\Desktop\foldername C:\Users\Desktop\targetfolder  /E /Y 

#------------------------------------------------------------------------------#

Here MD is used to create directory if you don't want to create a directory then remove it, otherwise you can create a directory anywhere and copy files in to it.

It will copy all files and sub folders from C:\Users\Desktop\foldername to C:\Users\Desktop\targetfolder

So, Basically the format is 
XCOPY sourcepath targetpath /E /Y
XCOPY sourcepath targetpath /E /Y
XCOPY sourcepath targetpath /E /Y
------------------------------------------------------------------
-------------------------------------------------------------------
You can include any number of XCOPY in this code in this way you will be able to copy many folders or files from different locations in to a single folder without doing anything.

2. open cmd and run this .cmd file that you have created it will start copying your file from source to target that you have defined. 
you can also see which file are being copied in cmd 

CMD IMAGE:-



                                      for u....

Kindly Bookmark this Post using your favorite Bookmarking service:


Post a Comment

Note: only a member of this blog may post a comment.