How can we create Folder for Current Year inside which the Months folder should be created for all months?
Example
2022->01
02
.
.
12
How can we create Folder for Current Year inside which the Months folder should be created for all months?
Example
2022->01
02
.
.
12
Hello @anmita
You can use create folder activity to achieve this.
First you can use create folder activity and inside the path you can give as “ System.DateTime.Now.Year.ToString”
The use a while loop (i<=12)… initialise i=1
Use create folder activity and give folder name as i
Then use assign activity i=i+1
So in the create folder activity you need to append the name of the year folder which you created.
Expression -
1 -> for creating the current year folder-
"C:\Users\vaibhav.rajpoot\Desktop\Propero\"+cdate(Now.ToString).ToString("yyyy")
2-> For creating the month folder in it :
"C:\Users\vaibhav.rajpoot\Desktop\Propero\"+cdate(Now.ToString).ToString("yyyy")+"\"+item.ToString.PadLeft(2,"0"c)
Sequence.xaml (9.0 KB)
Thanks @Vaibhav_Rajpoot_17 for the Reference
If your problem is solved , kindly marked it as solution for future refernce.
Thanks @Rahul_Unnikrishnan for such Detailed overview