Generate Random File name in C#

Last Reply on Feb 02, 2012 12:46 AM By Mudassar

Posted on Feb 02, 2012 12:46 AM

I want to know is there a method to generate random file names in c#

Posted on Feb 02, 2012 12:46 AM
//Random FileName with Random Extension
string fileName = System.IO.Path.GetRandomFileName();

//Random FileName without Random Extension
string fileNameWithoutExtension = System.IO.Path.GetFileNameWithoutExtension(System.IO.Path.GetRandomFileName());

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html?aff_id=108