Script execution time in send outlook email

Hello All,
I’m running my script daily basis and I want a time of script execution in outlook email.
How can I achieve this?

Thanks,
Sandeep S

Hi @Sandeep_3,

To answer to your question ,Kindly clarify these so that i can help you more on that
Question 1 - are you running the scripts through uipath or some other tool
if yes then at the start of running your scripts record the time into a datetime variable
and then at the end of the execution place one more variable and store it in onemore variable
calculate the datetime variable and get the minutes or hours from that
system.datetime.now.tostring( “HH :mm:ss”)

I hope this helps

Regards
Srish

1 Like

DateTime dt = DateTime.Now
DateTime dt2 = DateTime.Now
TimeSpan ts = (dt2 - dt)
Strtimetaken=ts.ToString(“hh:mm:ss”)

Regards
Srish

2 Likes

Thank you @srishsai
I will try this solution.

3 Likes

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