Tuesday, August 11, 2009

Get Temporary Folder using .Net (C#)

In asp.net we need Temorary folder to add logs while execution of the Program, or you can sa any other purpose also like Storing files means we have .zip file and we want to access one of the file from that zip file so at first i will simply decompress it and store it on Temp folder and from them i will simply access it.

In this case Folder location is different from OS to OS , here you can get how to get the
temp folder path using C#

String Path;
Path = Path.GetTempPath();
Response.write("Temp Path is -"+ Path);

C# Temporary Folder, Temporary Folder using .NET (C#)

No comments:

Post a Comment