New folder with correct squence

In my drive three folder Version 1, Version 2, Version 3. so, i need to increse that folder number sequence in correctly means new folder is Version 4.

so, which type I can do this?

Hello @rAE_rAS ,

If you want to create a New Version folder for every time then first you need to check the count of folders exists in main folder.

Create a variable FolderCount (Type Integer)
Assign FolderCount = Directory.GetDirectories(“Your_MainFolder_Path”).Count.ToString

Note : Replace Your_MainFolder_Path with your actual Parent folder path.

Now use Create Folder Activity and Pass Folder Name as : "Version "+FolderCount.ToString
Every time it will create new version folder for you.

Regards,
Rohith

Thank you for solution

1 Like

@rAE_rAS But by folder count you will never get sequence, suppose you have version2 is your first folder and you have 3 folder then your upcoming folder will be version 3 which will replace the existing one

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