Author Topic: C# Code to get the temp folder - GetTempPath  (Read 1439 times)

kathir

  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
C# Code to get the temp folder - GetTempPath
« on: December 01, 2011, 06:13:09 pm »
You can use GetTempPath function defined in System.IO.Path to get the temp directory of your system.

Code: (C#)
//Source Code Listing


string tempFolder = System.IO.Path.GetTempPath();
Console.WriteLine(tempFolder);


 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1