Page 2 of 3 FirstFirst 123 LastLast
  1.    30 Apr 2017 #11
    Join Date : Dec 2015
    Posts : 5,862
    Windows10

    Quote Originally Posted by Pyprohly View Post
    Try changing the paths and the -Include argument, preferably to something that exists.


    Whole point of OP's post was he had multiple source directories.
      My ComputerSystem Spec
  2.    30 Apr 2017 #12
    Join Date : Mar 2015
    Sydney, NSW
    Posts : 93
    Windows 10

    Multiple source directories and recursive? Okay:

    Code:
    Get-ChildItem 'C:\source1', 'C:\folder\source2', 'C:\some\folder\source3' -Include '*.mp3' -Recurse | Copy-Item -Destination 'C:\destination'
      My ComputerSystem Spec
  3.    30 Apr 2017 #13
    Join Date : Dec 2015
    Posts : 5,862
    Windows10

    Quote Originally Posted by Pyprohly View Post
    Multiple source directories and recursive? Okay:

    Code:
    Get-ChildItem 'C:\source1', 'C:\folder\source2', 'C:\some\folder\source3' -Include '*.mp3' -Recurse | Copy-Item -Destination 'C:\destination'

    But point is OP would have to type them all in. See my batch file method earlier - takes 5 minutes or less.
      My ComputerSystem Spec
  4.    30 Apr 2017 #14
    Join Date : Mar 2015
    Sydney, NSW
    Posts : 93
    Windows 10

    Iím not sure what important fact you are desperately trying to point out to me.

    Quote Originally Posted by cereberus View Post
    But point is OP would have to type them all in.
    Your method relies on the current directory for the starting path. True, you didnít have to type out this path but this approach does not support multiple starting directories. Aside from this method, the starting paths most typically will have to be typed or how will the interpreter know where to begin looking?

    Quote Originally Posted by cereberus View Post
    See my batch file method earlier - takes 5 minutes or less.
    I see your batch method is cute and all but I would think that entering a single line of code to get the job done is quite a lot more quicker than opening up a terminal to have a command redirect itís output, then manually opening output file, make edits to it, execute it as a script, etc.

    If this process is faster for you, by all means, speed is relative.
      My ComputerSystem Spec
  5.    30 Apr 2017 #15
    Join Date : Dec 2015
    Posts : 5,862
    Windows10

    Quote Originally Posted by Pyprohly View Post
    Iím not sure what important fact you are desperately trying to point out to me.


    Your method relies on the current directory for the starting path. True, you didnít have to type out this path but this approach does not support multiple starting directories. Aside from this method, the starting paths most typically will have to be typed or how will the interpreter know where to begin looking?
    No because you always start from the root. The /s parameter just lists every mp3 file in every subdirectory on that drive. The /b just removes header and footer. It handles multiple directories without ever having to type one in at all!
      My ComputerSystem Spec
  6.    30 Apr 2017 #16
    Join Date : Mar 2015
    Sydney, NSW
    Posts : 93
    Windows 10

    I know how your method works. If the OP wants the source location to be at the root folder I encourage him to do just that by using my line.

    Code:
    Get-ChildItem 'D:\' -Include '*.mp3' -Recurse | Copy-Item -Destination 'C:\destination'

    Quote Originally Posted by cereberus View Post
    It handles multiple directories without ever having to type one in at all!
    What you describe as the handling ďmultiple directoriesĒ is the recusing behaviour and this is a given need or it wonít be a valid solution to the problem. My command line recurses, does it not? And technically ďcd \Ē counts as typing a path.

    Quote Originally Posted by cereberus View Post
    The way I would do it is open a command prompt and type (say usb was d drive)

    d:

    cd \

    ...
      My ComputerSystem Spec
  7.    30 Apr 2017 #17
    Join Date : Dec 2015
    Posts : 5,862
    Windows10

    Quote Originally Posted by Pyprohly View Post
    I know how your method works. If the OP wants the source location to be at the root folder I encourage him to do just that by using my line.

    [CODE] My command line recurses, does it not?

    And technically “cd \” counts as typing a path.
    No it does not work - it crashes with all sort of permission errors

    CD\ - rolling of eyes at hair splitting.

    Bye Bye.
      My ComputerSystem Spec
  8.    30 Apr 2017 #18
    Join Date : Apr 2017
    Posts : 4
    Windows 10 on Desktop PC
    Thread Starter

    Copying files


    thanks for the many responses to my original post. My flash drive is recognised by Windows 10 with appropriate icon in system tray but not seen in a command window therefore can't try a batch file. I open the command prompt as administrator and type E: and enter. It says "The system cannot find the file specified" Windows sees it but dos doesn't. Any help would be appreciated.
      My ComputerSystem Spec
  9.    30 Apr 2017 #19
    Join Date : Oct 2013
    Newport, South Wales, UK
    Posts : 1,803
    Windows 10 Pro x64 FCU - XP/Vista/Win7/Win8.1 in VM for testing

    As this relates to music file, do you use a music manager? If so check if it has any functions to do what you want.
    If not the music manager I use would do what you need without a problem do a search for MediaMonkey I use the Gold Version but the free version should allow you to list all the music files on the USB and you can then select all files right click and select "copy to" and navigate to your required location and all files will be copied for you.

    It's late here now but will see what I can put together in step by step with screen shots in the morning here.

    mediamonky handles my 30000+ track collection so should be OK for however many files you need to move now and in the future, plus a lot more
      My ComputerSystem Spec
  10.    30 Apr 2017 #20
    Join Date : Aug 2016
    S/E England
    Posts : 4,476
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by MIkew365 View Post
    My flash drive is recognised by Windows 10 with appropriate icon in system tray but not seen in a command window therefore can't try a batch file. ..., Windows sees it but dos doesn't.
    By 'icon in the system tray' do you mean the eject icon? On its own, that doesn't confirm that Windows has loaded the correct drivers for it. Try uninstalling it in Device Manager then reinsert the flash drive.

    If a flash drive can be seen in File Explorer, it can be seen in a cmd.exe prompt (not Dos, that was for Win95/98). Can you see it in File Manager? If not, how does it appear in Disk Management? Does it have a drive letter assigned?
      My ComputersSystem Spec

 
Page 2 of 3 FirstFirst 123 LastLast


Similar Threads
Thread Forum
Solved Help with copying files to CD
I cannot figure out how to burn some files to a CD. I put a blank in the drive and try to copy files to the CD by opening a window of the source and the drive as the target. I click and drag the files from the source to the target window and I get...
General Support
Homegroup - copying files
I want to copy files from the source PC to the destination PC, but I don't want to allow editing or deletion of these files from the destination PC. How do I set this up? Thanks! Tried setting the destination folder as Homegroup > View, but then...
Network and Sharing
copying damaged files from CD/DVD?
Is there a rugged copy program that can copy a partially corrupted file (*.mpg) from a CD/DVD onto your H/D? What happens is that when the normal windows copy operation encounters that portion of the DVD that is faulty, it tries over and over again...
Software and Apps
How is copying files in Windows 10?
In Windows 7, it can be a real bother to leave a folder to copy to another drive, with some files in the folder being new versions to replace versions already existing in a same-name folder on the drive that's being copied to... and at some point...
General Support
Copying new files stuck at 83%
Hey everyone. I got my free upgrade to Windows 10 and I tried installing it. But it got stuck at 24%, copying new files 83%. If anyone could help me I'd appreciate it. Thank you
Installation and Upgrade
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:32.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums