Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When is the Documents and Settings\USER\Local Settings\Temp folder cleared?

I have a query regarding the directory returned from Path.GetTempPath() function.

It returns "C:\Documents and Settings\USER\Local Settings\Temp" as the directory.

I am saving some temp files there and I am wondering when this folder is cleared, so I know how long they will exist, if it is cleared at all that is.

Is it every time I restart the computer? or is it after a certain amount of time? or space is used up?

A nice easy one for someone to answer for me!

Thanks

like image 438
Lloyd Powell Avatar asked Aug 01 '26 00:08

Lloyd Powell


1 Answers

It gets cleared whenever the computer gets "cleaned up". This could be done a number of ways: manually by a user, through the Disk Cleanup tool, etc.

like image 165
Joseph Avatar answered Aug 03 '26 15:08

Joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!