Author Topic: Individually packing files within in nested folders?  (Read 6995 times)

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 503
    • View Profile
Individually packing files within in nested folders?
« on: May 18, 2016, 22:27:09 »
I'm wondering how easy it would be to use the packer function to pack nested files & maintain the folder structure.
i.e.
Code: [Select]
folder 1
.\file abc.ext
.\folder 2
..\file def.ext
..\folder 3
...\file ghi.ext

packer would zip the files in place, writing output  to source -

Code: [Select]
folder 1
.\file abc.ext
.\file abc.zip
.\folder 2
..\file def.ext
..\file def.zip
..\folder 3
...\file ghi.ext
...\file ghi.zip

I wondered if this would be possible via 'flat-view', where I would select the files required & use the packer to pack & output to source.

My first attempt didn't work so now I'm thinking about script or CC, but I can see there may be a lot of variables for me to cover. 

I know flatview is still experimental, maybe this is something that 'should' work in the future?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4287
    • View Profile
    • Multi Commander
Re: Individually packing files within in nested folders?
« Reply #1 on: May 19, 2016, 07:14:47 »
So each file into its own zip.

Might be possible with script.

Flat view or search panel,  Then select all files to pack and run script that picks up selected files
and then use MultiScript PackFile(..) on them in a loop


Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 503
    • View Profile
Re: Individually packing files within in nested folders?
« Reply #2 on: May 19, 2016, 12:13:25 »
Yes each into a zip but remaining in the source (nested) folders.

When using the search panel I hadn't realized that a button & script would still interact  8)

I will give it a shot with MS, thanks Mathias.