layout: post status: publish published: true title: “C# - Get Windows Temporary Directory” author: display_name: Phil Leggetter email: “phil@leggetter.co.uk” url: “https://www.leggetter.co.uk” author_email: “phil@leggetter.co.uk” author_url: “https://www.leggetter.co.uk” wordpress_id: 8 wordpress_url: “https://www.leggetter.co.uk/2007/02/02/get-windows-temporary-directory.html” date: “2007-02-02 10:25:48 +0000” date_gmt: “2007-02-02 09:25:48 +0000” categories:

Once you know it you'll probably never forget it...but wait, this is the second time I've googled for this. I'd best post how you "get the Windows temporary directory using C#"!

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