i am new and i need help for creating a Directory. The Name of this Directory should be the time of today.
I get a daily email and this email includes attachements. So, now i want to save these attachements in a directory on my desktop with the name of todays date (e.g). Better how can i create a directory with date and time as name.
Is this possible in UiPath or is there any other Options?
Thanks for Helping
If you create a variable to hold the file name or just write it straight in the activity’s property you can use “Date.Now” which depending on Cultural settings will output “MM/DD/YYYY HH:MM:SS” (I’m on English US Windows). Worth mentioning you will need to use Date.Now.ToString since it’s of type DateTime.
Hope this helps!
pass this for file name:
if your trying different format make sure you are not including any slashes(\ /) or Colon(: )
First of all Thank you.
But can you give me an Example ? Like, how it could look like? Or how i can Create a simple directory with date, specially how the path will look like?
here you go:
in activity pane search for activity named Create Directory then in path field in property pane pass this- Environment.GetFolderPath(Environment.SpecialFolder.Desktop) &"\ " & now.tostring(“MMyyy_HHmmss”)
I got another question. How can i save Attachements in this directory?
Save_Attachment.xaml (11.9 KB)
I have uploaded a Work Flow for your requirement.