How do I move a series of files to a parallel folder structure in windows 10

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite
1












I've a folder that has both image and video folders which I want to separate into separate folders based on the file type. I want this to be a script so that i can re run it when more files are imported



Current file structure



Currently images and videos are in a folder where they are combined by date



Images/
2018-08/
image1.png
Video1.mp4
2018-09/
image1.png
video1.mp4


Target Structure



After running the script I would like the folder structure and file names been retained with the point of having the images remain in the images structure and the videos being moved into a separate structure.



Images/
2018-08/
image1.png
2018-09/
image1.png
Videos/
2018-08/
Video1.mp4
2018-09/
video1.mp4


What i've tried so far



I've looked at the windows move command but it seems only to apply to a single folder.



Also I looked at then solution to How to copy files and keep the structure?. It almost solves my problem except I don't have a predefined list of files just pre defined extension and starting folder.



Some notes



  • The Higher folders e.g. Images and Videos will be predefined and are static

  • The sub-folders below images need to be automatically replicated

  • File names may duplicate between moves






share|improve this question
























    up vote
    3
    down vote

    favorite
    1












    I've a folder that has both image and video folders which I want to separate into separate folders based on the file type. I want this to be a script so that i can re run it when more files are imported



    Current file structure



    Currently images and videos are in a folder where they are combined by date



    Images/
    2018-08/
    image1.png
    Video1.mp4
    2018-09/
    image1.png
    video1.mp4


    Target Structure



    After running the script I would like the folder structure and file names been retained with the point of having the images remain in the images structure and the videos being moved into a separate structure.



    Images/
    2018-08/
    image1.png
    2018-09/
    image1.png
    Videos/
    2018-08/
    Video1.mp4
    2018-09/
    video1.mp4


    What i've tried so far



    I've looked at the windows move command but it seems only to apply to a single folder.



    Also I looked at then solution to How to copy files and keep the structure?. It almost solves my problem except I don't have a predefined list of files just pre defined extension and starting folder.



    Some notes



    • The Higher folders e.g. Images and Videos will be predefined and are static

    • The sub-folders below images need to be automatically replicated

    • File names may duplicate between moves






    share|improve this question






















      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I've a folder that has both image and video folders which I want to separate into separate folders based on the file type. I want this to be a script so that i can re run it when more files are imported



      Current file structure



      Currently images and videos are in a folder where they are combined by date



      Images/
      2018-08/
      image1.png
      Video1.mp4
      2018-09/
      image1.png
      video1.mp4


      Target Structure



      After running the script I would like the folder structure and file names been retained with the point of having the images remain in the images structure and the videos being moved into a separate structure.



      Images/
      2018-08/
      image1.png
      2018-09/
      image1.png
      Videos/
      2018-08/
      Video1.mp4
      2018-09/
      video1.mp4


      What i've tried so far



      I've looked at the windows move command but it seems only to apply to a single folder.



      Also I looked at then solution to How to copy files and keep the structure?. It almost solves my problem except I don't have a predefined list of files just pre defined extension and starting folder.



      Some notes



      • The Higher folders e.g. Images and Videos will be predefined and are static

      • The sub-folders below images need to be automatically replicated

      • File names may duplicate between moves






      share|improve this question












      I've a folder that has both image and video folders which I want to separate into separate folders based on the file type. I want this to be a script so that i can re run it when more files are imported



      Current file structure



      Currently images and videos are in a folder where they are combined by date



      Images/
      2018-08/
      image1.png
      Video1.mp4
      2018-09/
      image1.png
      video1.mp4


      Target Structure



      After running the script I would like the folder structure and file names been retained with the point of having the images remain in the images structure and the videos being moved into a separate structure.



      Images/
      2018-08/
      image1.png
      2018-09/
      image1.png
      Videos/
      2018-08/
      Video1.mp4
      2018-09/
      video1.mp4


      What i've tried so far



      I've looked at the windows move command but it seems only to apply to a single folder.



      Also I looked at then solution to How to copy files and keep the structure?. It almost solves my problem except I don't have a predefined list of files just pre defined extension and starting folder.



      Some notes



      • The Higher folders e.g. Images and Videos will be predefined and are static

      • The sub-folders below images need to be automatically replicated

      • File names may duplicate between moves








      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 2 at 4:13









      user1605665

      256137




      256137




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          Check out robocopy which is built in to Windows 7 and above.



          It can move files and folders with a specific mask.



          In your case, it should work using something like this:
          robocopy images videos *.mp4 /copyall /s /mov



          I would recommend testing this on a few folders and files before running it on a large folder structure that could be really jumbled around, until you get the command just right.



          https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy






          share|improve this answer




















          • I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
            – user1605665
            Sep 3 at 3:45










          • @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
            – Appleoddity
            Sep 3 at 4:12










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "3"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1354516%2fhow-do-i-move-a-series-of-files-to-a-parallel-folder-structure-in-windows-10%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          6
          down vote



          accepted










          Check out robocopy which is built in to Windows 7 and above.



          It can move files and folders with a specific mask.



          In your case, it should work using something like this:
          robocopy images videos *.mp4 /copyall /s /mov



          I would recommend testing this on a few folders and files before running it on a large folder structure that could be really jumbled around, until you get the command just right.



          https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy






          share|improve this answer




















          • I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
            – user1605665
            Sep 3 at 3:45










          • @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
            – Appleoddity
            Sep 3 at 4:12














          up vote
          6
          down vote



          accepted










          Check out robocopy which is built in to Windows 7 and above.



          It can move files and folders with a specific mask.



          In your case, it should work using something like this:
          robocopy images videos *.mp4 /copyall /s /mov



          I would recommend testing this on a few folders and files before running it on a large folder structure that could be really jumbled around, until you get the command just right.



          https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy






          share|improve this answer




















          • I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
            – user1605665
            Sep 3 at 3:45










          • @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
            – Appleoddity
            Sep 3 at 4:12












          up vote
          6
          down vote



          accepted







          up vote
          6
          down vote



          accepted






          Check out robocopy which is built in to Windows 7 and above.



          It can move files and folders with a specific mask.



          In your case, it should work using something like this:
          robocopy images videos *.mp4 /copyall /s /mov



          I would recommend testing this on a few folders and files before running it on a large folder structure that could be really jumbled around, until you get the command just right.



          https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy






          share|improve this answer












          Check out robocopy which is built in to Windows 7 and above.



          It can move files and folders with a specific mask.



          In your case, it should work using something like this:
          robocopy images videos *.mp4 /copyall /s /mov



          I would recommend testing this on a few folders and files before running it on a large folder structure that could be really jumbled around, until you get the command just right.



          https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 2 at 4:52









          Appleoddity

          6,22021024




          6,22021024











          • I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
            – user1605665
            Sep 3 at 3:45










          • @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
            – Appleoddity
            Sep 3 at 4:12
















          • I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
            – user1605665
            Sep 3 at 3:45










          • @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
            – Appleoddity
            Sep 3 at 4:12















          I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
          – user1605665
          Sep 3 at 3:45




          I tried /copyall and had an issue with the Auditing information permissions so tried /copy:DAT are there any concerns when not including S NTFS access control list (ACL), O Owner information, U Auditing information?
          – user1605665
          Sep 3 at 3:45












          @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
          – Appleoddity
          Sep 3 at 4:12




          @user1605665 not really. Now that you mention it I seem to remember similar issues myself. This would be more important in a business network with different users on a server / computer. If they are just your files on your computer, it really doesn’t matter. The files inherit permissions from the parent folder anyways.
          – Appleoddity
          Sep 3 at 4:12

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1354516%2fhow-do-i-move-a-series-of-files-to-a-parallel-folder-structure-in-windows-10%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery