Start Using XCOPY to Speed up Transferring Files

Updated on May 13, 2018

The Need for Speed

People are copying, storing, backing up, and sharing more and more media files than ever. While it's important to have fast CPU’s, lots of RAM, and plenty of storage on a drive with good speed (if not a Solid State Drive), one of the easiest and best ways to save time transferring files is by using a simple cmd line tool called XCOPY.

Even if you're not familiar or comfortable using the cmd line interface, XCOPY is one of the easiest commands to learn and use. Why Use XCOPY? Because in Windows, that pretty little graphic display you see that shows you files are being transferred is actually eating up processor speed and slowing the file transfer down! By exactly how much you ask? Glad you asked, Read on and I’ll show you.

Timing is Everything

Lets say I want to copy my music files from my local HD to my external drive. I open up both windows, select my music file, hit the CTRL keys + C (Copy), and then in my External USB Window hit the CTRL + V keys (Paste). Note - I personally always copy and paste to ensure files don't placed in the wrong directory, and that they were copied and not moved.

Windows 7 is estimating this transfer will take an hour or so. (Pic above). For the sake of this article I (painfully) let this run and it actually took 20 minutes. Now, lets try to use XCOPY to copy these files and see how long it takes.

Example 1

First, I’ll get to my command prompt by using the search box in Windows 7 (Desktop --> Windows Icon bottom left corner --> where it says "Search programs and files" and type CMD. If you are running Windows Vista do the same, if you are running Windows XP go to start, run, and type CMD.


The black screen that appears is the cmd prompt. Now I will Type XCOPY C:\music H:\music /s /e.

I was able to copy my files in ten minutes. Here's a quick breakdown of the syntax:

First, always start with XCOPY. Next you type the source, in my case the C drive and the folder “photos”. Then second you enter the destination. My external drive is H and the folder I want to copy the contents of photos into is also creatively named photos. The s “copy all directories and subdirectories even if empty” and e ”copy all subdirectories even if empty” tags are necessary. Without them you will see individual files were copied (from the main directory) but not the subdirectories.

Generally speaking, if you are copying an entire directory from one drive to another, the /s and /e tags will usually do the trick. Tip – after your transfer is done you should always check the folder size on both drives to make sure they are the same (right click the folder and select properties).

Example 2

In this example Ill copy the contents of my spreadsheet folder into a network share. The syntax is the same, XCOPY C:\spreadsheets “S:\user share” /s /e

You may have noticed I used quotes this time, this is because of the space between user and share, the cmd line will not recognize this drive without them.

Since you're copying files and not moving them your risk is limited, but before you try copying any wedding photos or baby pictures I would run a test or two first to get the hang of XCOPY. With just a little bit of effort you can speed up your file transfers and maybe even show off to your friends a bit.

Questions & Answers

    Comments

      0 of 8192 characters used
      Post Comment

      • profile image

        Ginni 

        2 months ago

        "We have the same problem with a lot of DSC modules, before using the setup.exe, you have to copy/paste the binaries in a local folder.

        And for the disk space, I don't know if a dsc resource already exists?...it's better to use an alternative tool of it like G.S Richcopy 360 Enterprise because i already used robocopy and find some issues in it.

      • profile image

        catherinelee9909 

        9 months ago

        Does it provide multi threaded file transfer feature? Because its crucial if you want to speed up your file transfer rate. If the answer is "yes" then well and good if not then I would not consider is as fast. I would rather recommend GS Richcopy 360 which provides 100% multi threaded fie transfer, the level of threading is quite extensive. Its a premium quality software on which I rely for most of my backups and transfers. Give it a try, maybe it can help you! Have a good day, thanks!

      • profile image

        Colns Anksh 

        12 months ago

        Not everyone is comfortable using command line, just like me. After searching a lot I found that GS Richcopy 360 works best among all the software that I have used. Its simple to use, provides all features that one would need and many extra features too! Try it, hope it helps!

      • howlermunkey profile imageAUTHOR

        Jeff Boettner 

        4 years ago from Tampa, FL

        Thanks JC, yeah results seem to vary with teracopy for me as well. I've been using robocopy or xcopy lately. Thanks for stopping by, -- J

      • profile image

        JC 

        4 years ago

        teracopy was significantly slower for me

      • kschang profile image

        kschang 

        6 years ago from San Francisco, CA, USA

        Good tip. For those who are command-line allergic, Teracopy may be of some assistance:

        http://codesector.com/teracopy

      working

      This website uses cookies

      As a user in the EEA, your approval is needed on a few things. To provide a better website experience, turbofuture.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

      For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://turbofuture.com/privacy-policy#gdpr

      Show Details
      Necessary
      HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
      LoginThis is necessary to sign in to the HubPages Service.
      Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
      AkismetThis is used to detect comment spam. (Privacy Policy)
      HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
      HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
      Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
      CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
      Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
      Features
      Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
      Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
      Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
      Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
      Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
      VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
      PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
      Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
      MavenThis supports the Maven widget and search functionality. (Privacy Policy)
      Marketing
      Google AdSenseThis is an ad network. (Privacy Policy)
      Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
      Index ExchangeThis is an ad network. (Privacy Policy)
      SovrnThis is an ad network. (Privacy Policy)
      Facebook AdsThis is an ad network. (Privacy Policy)
      Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
      AppNexusThis is an ad network. (Privacy Policy)
      OpenxThis is an ad network. (Privacy Policy)
      Rubicon ProjectThis is an ad network. (Privacy Policy)
      TripleLiftThis is an ad network. (Privacy Policy)
      Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
      Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
      Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
      Statistics
      Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
      ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
      Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)