Create random filenames

How to create random filenames?

Trying to save outlook body to the .mht file format. I having too many emails. So, in this case, I want to save all the mail files to different *.mht format.

Fine to save the file name in different file names we can add timestamp to it
Like this
"Your folder path\yourfilename"+Now.ToString(“dd_MM_yy_hh_mm_ss”)+".mht"

That would save the file with different name at each second
Hope this would help you
Cheers @ganesh_rajan

1 Like

Thanks buddy

1 Like

If your process is too fast, don’t forget to add nano seconds in time stamp to generate random file names.




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