How can I find the temp folder on the user's machine?

  • Thread starter Thread starter A.M-SG
  • Start date Start date
A

A.M-SG

Hi,

How can I find the temp folder on the user's machine?
Is there any class that returns me a unique temporary file name?

Thank you,
Alan
 
Alan,

Check out the static GetTempPath method and the GetTempFileName method
on the Path class in the System.IO namespace.

Hope this helps.
 
That is exactly what I was looking for. Thank you very much.


Nicholas Paldino said:
Alan,

Check out the static GetTempPath method and the GetTempFileName method
on the Path class in the System.IO namespace.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

A.M-SG said:
Hi,

How can I find the temp folder on the user's machine?
Is there any class that returns me a unique temporary file name?

Thank you,
Alan
 
Back
Top