recursively search C: for specific file-type type then copy w/Path

Page 2 of 2 FirstFirst 12

  1. Posts : 989
    Microsoft Windows 10 Home
       #11

    questorfla said:
    ricardobohner:
    ... KeithM, the PS version runs with no errors but the 31 ACL files are not copied to anywhere as far as i can see. I created the identical path with my username and sandbox folder in it.?
    You can make the destination any valid folder, but it should exist before running the code. Did the code running with the "-WhatIf" at the end output any text? You have to remove "-WhatIf" to actually copy the files.

    Keith
      My Computer


  2. Posts : 11,246
    Windows / Linux : Arch Linux
       #12

    Hi there
    I know this is a Windows Forum but there is a really SIMPLE linux way to achieve what you want with either rsync (command line) or it's GUI front end grsync

    Just enter source and destination and parameters and the whole job will get done preserving paths etc etc -- you can specify things like don't update if file on target device is newer than the source etc etc.

    I always manage windows file copies with this -- the Windows files / disks / directories are shared via SAMBA so no problem in copying Windows files to another Windows destination.

    I can't think of any windows solution that works - certainly none that do it so simply and elegantly -- since you seem capable of writing scripts etc this solution might well work for you - although probably not for people with zero experience in Linux.

    Sometimes its worth learning new methods to solve problems that might almost be unsolveable in another system or at least far more complicated to do.

    Loads of options - the standard default one will do what you want.

    recursively search C: for specific file-type type then copy w/Path-snapshot1.png

    You can without using a Linux machine run this in the WSL (enable WSL) even in a GUI -- takes a bit of config fiddling to get it to work but it will run and saves using a Linux machine or VM too.

    I'll post later the steps needed to get some Linux GUI programs to run on the WSL --you can't get a full GUI desktop but a lot of GUI programs will run nicely in the Windows environment including the GRSYNC program and you can run samba from within the WSL !!!.

    Cheers
    jimbo
      My Computer


 

  Related Discussions
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 21:03.
Find Us




Windows 10 Forums