Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Copy all files from usb to a folder  (Read 5616 times)

0 Members and 2 Guests are viewing this topic.

Fairadir

    Topic Starter


    Rookie

    Thanked: 1
    Copy all files from usb to a folder
    « on: May 19, 2009, 03:27:25 AM »
    I'm looking for a way to copy all files from my usb to a folder on my computer, but I have no idea how copy works.

    Could anyone post an example?

    Thanks.  :)

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: Copy all files from usb to a folder
    « Reply #1 on: May 19, 2009, 03:30:16 AM »
    Go into the USB drive, press CTRL + C, then navigate to another folder on your hard disk and press CTRL + V.

    Fairadir

      Topic Starter


      Rookie

      Thanked: 1
      Re: Copy all files from usb to a folder
      « Reply #2 on: May 19, 2009, 03:35:25 AM »
      LOL, I mean by using a batch file.

      Woodman



        Beginner
        Re: Copy all files from usb to a folder
        « Reply #3 on: May 19, 2009, 04:01:54 AM »
        Where Z: is the drive letter of the usb device and C: is the destination drive:

        Copy "Z:\*.*"  "C:\DestinationFolder\" > nul

        But, if the usb device contains folders/subfolders then the better command is XCOPY.  At a command prompt enter XCOPY/? | MORE to view the switches available.

        Good luck.

        squall_01



          Prodigy

          Thanked: 80
          Re: Copy all files from usb to a folder
          « Reply #4 on: May 19, 2009, 04:42:19 AM »
          woodman is right but how far did you want to go with it?
          Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

          If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

          Ädamas



            Beginner

            Thanked: 1
            Re: Copy all files from usb to a folder
            « Reply #5 on: May 19, 2009, 05:09:00 AM »
            Code: [Select]
            xCopy /s "Z:\*.*"  "C:\DestinationFolder\" > nul
            /s Copies directories and subdirectories except empty ones.
            you're just jealous because the voices talk to me, and not you.

            squall_01



              Prodigy

              Thanked: 80
              Re: Copy all files from usb to a folder
              « Reply #6 on: May 19, 2009, 05:12:12 AM »
              the code is wrong, which probably wont do anything.
              Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

              If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

              Aegis



                Expert

                Thanked: 67
                • Yes
                • Yes
                • Brian's Mess Of A Web Page
              • Experience: Experienced
              • OS: Windows 10
              Re: Copy all files from usb to a folder
              « Reply #7 on: May 19, 2009, 05:17:12 AM »
              Quote
              the code is wrong, which probably wont do anything.

              What code is wrong?  Can it be corrected?






              "For you, a thousand times over." - "The Kite Runner"

              squall_01



                Prodigy

                Thanked: 80
                Re: Copy all files from usb to a folder
                « Reply #8 on: May 19, 2009, 05:21:27 AM »
                Code: [Select]
                xCopy /s "Z:\*.*"  "C:\DestinationFolder\" > nul
                /s Copies directories and subdirectories except empty ones.

                Yes, I wanted him to figure it out. 
                Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

                If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

                BC_Programmer


                  Mastermind
                • Typing is no substitute for thinking.
                • Thanked: 1140
                  • Yes
                  • Yes
                  • BC-Programming.com
                • Certifications: List
                • Computer: Specs
                • Experience: Beginner
                • OS: Windows 11
                Re: Copy all files from usb to a folder
                « Reply #9 on: May 19, 2009, 05:44:16 AM »
                If he could figure it out himself then what is the forum for? Moral support?
                I was trying to dereference Null Pointers before it was cool.

                macdad-



                  Expert

                  Thanked: 40
                  Re: Copy all files from usb to a folder
                  « Reply #10 on: May 19, 2009, 06:09:02 AM »
                  He would have to mod the code to allow the Name(Drive Letter) of the USB drive to copy the files to.

                  Code: [Select]
                  @echo off
                  echo.Enter USB Drive Letter to copy to:
                  set /p letter=
                  echo.
                  echo.Enter Path to be copied:
                  set /p fldr=
                  echo.
                  xcopy /S %fldr% %letter%
                  pause

                  Hope this helps
                  ,Nick(macdad-)
                  If you dont know DOS, you dont know Windows...

                  Thats why Bill Gates created the Windows NT Family.

                  squall_01



                    Prodigy

                    Thanked: 80
                    Re: Copy all files from usb to a folder
                    « Reply #11 on: May 19, 2009, 09:37:25 AM »
                    it appearntly didnt post.  I ment that the user who started the post wanted to just make a batch but the guy gave him a code that maybe nulled or not see the switch at all.
                    Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

                    If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

                    TheShadow



                      Hopeful

                    • Retiree in Florida
                    • Thanked: 13
                      • Yes
                      • The Doctor
                    • Certifications: List
                    • Computer: Specs
                    • Experience: Guru
                    • OS: Windows XP
                    Re: Copy all files from usb to a folder
                    « Reply #12 on: May 19, 2009, 02:50:20 PM »
                    Using XCOPY, the switches should be placed after the two path statements.

                    XCOPY "Z:\*.*" "C:\USBFiles\" /s

                    or something like that.  ::)

                    I use an XCOPY batch file to back up all MY Documents and other selected folders, every day in conjunction with my Quick Shutdown routine.
                    Using the correct switches, you can backup only new or changed files and not the entire source directory.
                    Experience is truly the best teacher.
                    Backup! Backup! Backup!  Ghost Rocks!

                    squall_01



                      Prodigy

                      Thanked: 80
                      Re: Copy all files from usb to a folder
                      « Reply #13 on: May 19, 2009, 03:52:03 PM »
                      thanks for ruining the lessons.
                      Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

                      If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

                      Aegis



                        Expert

                        Thanked: 67
                        • Yes
                        • Yes
                        • Brian's Mess Of A Web Page
                      • Experience: Experienced
                      • OS: Windows 10
                      Re: Copy all files from usb to a folder
                      « Reply #14 on: May 19, 2009, 04:30:53 PM »
                      How does that ruin anything?  It's another suggestion, another way to try to copy the files.

                      I tried to do an xcopy about a year ago, under similar circumstances (files to a flash drive) and couldn't get it to work at all.

                      Maybe something on this thread will work.


                      "For you, a thousand times over." - "The Kite Runner"