Extract .tar to folder created as name of .tar file - VisualCron - Forum

Community forum

anderz
2019-06-20T09:28:13Z
I am trying to create a job extracting .tar files from a watchfolder to another folder creating subfolder for each .tar file using the filename from .tar file. then delete the .tar.
I guess i have to use a variable of some sort . Can someone explain what tasks to include? Or maybe point to some examples/documentation?
Support
2019-06-21T09:14:03Z
I guess you can do it the following way;

1. extract to folder x
2. add "List files Task" on folder x
3. create a "Create folder Task". Set base folder and add the Loop Variable for the current line). Set this Task as a loop
4. add the Delete files Task

A quick video: https://www.screencast.com/t/K6KJSFHV 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top