locked
Action recursive on folders RRS feed

  • Question

  • Hello,

    I would like to create a script that will perform an action on each file present in folders and subfolders recursively.

    This script will be used to re-encode videos, and I would like each re-encoded video to be in the same location as the original video.

    For example :
    - Primary Folder
       - Folder 1
          - File 1
          - File 2
       - Folder 2
          - File 1
       - Folder 3
          - Subfolder 1
             - File 1

    Which would give:

    - Primary Folder
        - Folder 1
           - File 1
           - File 1 reencoded
           - File 2
           - File 2 reencoded
        - Folder 2
           - File 3
           - File 3 reencoded
        - Folder 3
           - Subfolder 1
               - File 4
               - File 4 reencoded

     
    I know how to encode file, I just need to know how to do this recursively.

    Can you help me to do that please ?

    Thanks you for your help.

    Monday, April 2, 2018 8:57 AM

All replies