I need help for creating a Directory with name as "ABC_current date_current time"

I need help for creating a Directory with name as current date and time

image

image

Hi @KavithaManohar

Use create directory activity and pass the pass as “C:\users\Desktop\ABC_”+Now.ToString(“dd/mm/yyyy hh:mm:ss”)

Thanks
Ashwin.S

1 Like

Here it is @KavithaManohar

Ususally, date.now gives you the format with slashes which will give you the error

Hi @KavithaManohar
Use Create Directory and Give the Path As "YourPath\Abc"+System.datetime.Now.Tostring.

1 Like

This was the output of this step
image

Hi @KavithaManohar

“ABC”+Now.Date.ToString(“dd_MM_yyyy”)+“_”+now.timeofDay.ToString

Thanks
Ashwin S

Use this in the last @KavithaManohar

now.TimeOfDay.ToString.Substring(0,8)



----got runtime execution error

Finally i found the solution:)

image

1 Like

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