Get the Temp directory of the system using C#

By [)ia6l0 iii

You can use the System.IO class to get the temp directory location.

string temporaryDirectory = System.IO.Path.GetTempPath();

The above code snippet will give us the Temporary location of the system.

Get the Temp directory of the system using C#  (1950 Views)