Creating a temporary directory in Windows using C#

public string GetTemporaryDirectory()
{
   string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
   Directory.CreateDirectory(tempDirectory);
   return tempDirectory;
}

References
https://stackoverflow.com/questions/278439/creating-a-temporary-directory-in-windows

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.