Fabs
(FP)
January 23, 2024, 12:55pm
1
Hi All,
I have create 2 variables to look for most recent created folder, and a subfolder with current month.
I have combined both variables to give me the file location I want to create a new folder.
fileLocation - Path.Combine("I:\SAMPLE1\SAMPLE2\Transaction Reports\", strRecentYear, strRecentMonth)
How should I add the file location variable within the Create Folder activity and include the new folder name to have previous date (ddMMyyyy)?
Thanks!
Anil_G
(Anil Gorthi)
January 23, 2024, 12:59pm
2
@Fabs
Open advqanced editor by clicking plus
there you can access any variable for eg Path.Combine(Var1,Now.AddDays(-1).ToString("ddMMyyyy"))
will give the folder path containing base path in var1 added with date
cheers
vrdabberu
(Varunraj Dabberu)
January 23, 2024, 1:01pm
3
Hi @Fabs
Try this
fileLocation si the given location and You can give below syntax in Create Folder Activity
Path.Combine(fileLocation, DateTime.Now.AddDays(-1).ToString("ddMMyyyy"))
Regards
system
(system)
Closed
January 26, 2024, 1:02pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.