I want to generate an ID for my folder by using counter. The ID will start from number 001 and keep increasing if the number of folder increase. Example, if I create a folder inside my project folder, the robot will rename the folder that I created as 001 and if I add another folder the robot will keep rename the new folder that been added as 002, 003, 004 and so on. Is it possible to make it?
Thanks for your fast reply. The folder will be create automatically by the robot as the robot create the folder, it will rename that folder with the ID such as 001, 002, 003… What I want to do is the robot will rename every folder that being created or the new folder with number start from 001 and keep going on.
Got your point.
You can change 'Directory.GetDirectories(“Result”,str_folder_prefix+“*”)'to 'Directory.GetDirectories(“Result”) '.
And then it will work for different name too.