How do you assign consecutive numbers to the directory?

I would like to ask for your help if you knew this.

I have a “Create Directory” activity on my robot, with which the robot create a directory named “190621” to show the date when the robot is processed.

I want to assign consecutive numbers to it if the same directory is already made, for example, “190621(2)”, “190621(3)”, and so on.
However, no error message pops up when the robot tries to create a directory with the same name in the same location.

What was wrong with my scenario making?
Could you tell me any ideas?


Welcome to the UIpath Community.

What Activity are you using to create directory. Please check in properties whether override option is checked or not.

Hi lakshman,

I am using “UiPath.Core.Activities.CreateDirectory” where I cannot find override options.


Flowchart.xaml (12.3 KB)


Hi sagaryeole,

Thank you so much for the best reference.

If this is ur required answer then mark it as solution or let me know if u want something else.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.