7Zip / Iteration

Question.

I have a shared drive that in the root, has several project folders.

How would I create a script to iterate through each root folder, 7Zip that folder, then copy to a different directory.  There may be subdirectories within the project, but I am only concerned from the root level.

Example:

\\SERVER\Delphi7\Project1

\\SERVER\Delphi7\Project2

\\SERVER\Delphi7\Project3

I'd like to see a Project1.7z, Project2.7z and Project3.7z

Thanks!

Lance

Hi Lance,

Thanks for your post. I've attached a simple project which shows how to do this. It uses the Folder Iterator along with the 7Zip action, and a Set Variable action to determine the archive name.

To use it in your own project, either change the variables to hard-coded paths, or set default values for the variables and disable the Prompt for Variables action.

Regards,

Angus

 

Create Archive of Shares.fbz5 (2.447 KB)

Thanks Angus,

that looks like a winner.  

Is there an action / iterator process to do my dishes and laundry yet?  I'll gladly pay a little bit more for that edition...  Even an annual fee.... lol

Glad to hear it's working well. The features you requested are planned for FinalBuilder 11.0 Excellence Edition, right after the version which files your weekly TPS Reports. ;)

mmmmmmmmmm yeah… well… mmmmmmm…

Were you the one who stole my stapler???