devxlogo

Get the Path to the Temporary Folder in the Operating System

Get the Path to the Temporary Folder in the Operating System

Use the GetTempPath?method to retrieve the temp file path in a machine.

Please note that it also varies from one operating system to other.

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

devx-admin

Share the Post: