Offline action

Hi there.

I'm new to FinalBuilder and I'm trying to automate our build processes.

Now, one of the things we need to do, is to delete a huge directory with large number of files.

When I'm using the Delete Directory action, it takes over 2 hrs, sometimes 3!

What I want to do, is to "fire and forget" - I want to use the Delete Directory action, but I would like to set it in a different thread so that the FinalBuilder project can continue and even finish before this action has done. I don't care about the result.

Is it possible? what I'm doing now, is to change the name of that directory to old + random number (like "old54332") and continue without deleting it. I have another project which run once a day and make a cleanup (deleting these directories).

While this works fine, it seems that there is a much easier solution to that.

Please advise...

Thanks,

Guy,

Waves Audio LTD.

Hi Guy,

There’s an action in FinalBuilder which allows you to do several actions at the same time, it’s called ‘ASync Action Group’.

The Async action group will not complete until all the actions within this group are completed.

It sounds like your deleting a directory and then creating one with the exact same name which would mean there are dependancies. As in you would need to delete the directory before creating the new one so the ‘Async Action Group’ may not help you (may not speed up your process). But have a muck around with it to see if you can work it out.

Do you need to delete the original directory? or could you just over write what was already in there?

Hope this helps a little…

Cam

Hi guy,

Cameron's advice is the recommended solution. If you want true "fire and forget" deletion then you can use "Run DOS Command" to run DEL /S, which "Wait for Completion" turned off. You won't capture any output, or know when the delete finishes, though.

Probably the best solution in terms of raw performance (although quite risky if there is a possibility of errors), is to rename the directory and then use the Run DOS Command to make a non-waited Delete operation. Then you can just keep on with whatever you need to do with the original directory name.

Regards,

Angus

 

PS Standard disclaimer : Be very careful when running commands like DEL /S.

hey guys, thank you for the replies.

Yes, I am reusing this directory but I also rename it first, so it's not a problem to continue the build process without waiting for the delete action to finish.

I wasn't familiar with the Run Dos Command action with the ability to Wait for Completion turned off. This is exactly what I need.

Thank you very much, you saved me 3 hrs !! :)

Guy