PDA

View Full Version : Set "Copy Subdirectories" flag via script


rod
08-20-2004, 11:48 AM
In the Copy Files step, is there a way to programatically set the "Copy Subdirectories (recursive)" check box.

I can get the step fine via script but I was wondering if there is a property that I can set to have it checked or unchecked.

kinook
08-20-2004, 01:40 PM
One way would be to use a field override and have the checkbox value be based on a macro's value. See 'field override' in the help index for details on that.

Otherwise, if you have the step object for that step, the script code

Step.Property("Recurse") = True ' or False

would set it.

rod
08-20-2004, 02:49 PM
That worked!