[SOLVED] This PC>Local Disk (C :) > Windows > Temp

Status
Not open for further replies.

VMUNOZ

Prominent
Jul 20, 2019
8
0
510
I keep running into problems where my Windows temp folder located at
This PC>Local Disk (C : > Windows > Temp
will literally hold over 164 GB of space, but will not clear itself out. I just found out how to clear it manually is there a reason why it isnt cleaning auto? It's a real pain to have to do it almost every time my PC turns on because it informs me I'm running on low disk space, any help is appreciated!
 
Solution
I keep running into problems where my Windows temp folder located at
This PC>Local Disk (C : > Windows > Temp
will literally hold over 164 GB of space, but will not clear itself out. I just found out how to clear it manually is there a reason why it isnt cleaning auto? ....
If/when a program terminates abnormally, or, upon normal termination, a programming error (very, very, very common) causes the temp file deletion to be skipped, any temp files it may have created become orphans and will remain until manually deleted. Windows has no way to know that these files no longer have a purpose.

VMUNOZ

Prominent
Jul 20, 2019
8
0
510
stick with 1 thread
I keep running into problems where my Windows temp folder located at

This PC>Local Disk (C : > Windows > Temp

will literally hold over 164 GB of space, but will not clear itself out. I just found out how to clear it manually is there a reason why it isnt cleaning auto? It's a real pain to have to do it almost every time my PC turns on because it informs me I'm running on low disk space, any help is appreciated!
 

VMUNOZ

Prominent
Jul 20, 2019
8
0
510
164GB of windows event logs?

Literally, it is at least over 100+ GB of when I barley scrolled through it each one was around 20kMB (I think MB?)

When I first turned my PC back on from sleep (I think Sleep may be apart of the issue) It said I was on low disk space checked, was on 9 MB I think or something low, then went into Windows > Temp again, found it while running a disk cleanup with a separate application which pointed this out to me.

Attached is a screenshot from some of them still in my Recycling Bin, this is what it's mostly filled with and like I said some additional folders which I did not check what were their contents.
 
Create a scheduled task that runs c:\windows\temp cleanup
Create a file cleanup.bat and schedule execution in Windows Task Scheduler:
del /s /q /f C:\windows\Temp\✴.✴
for /d %%x in (C:\windows\Temp\*) do rmdir /s /q "%%x"​
(autocorrect messes up * symbols)
 

VMUNOZ

Prominent
Jul 20, 2019
8
0
510
Create a scheduled task that runs c:\windows\temp cleanup
Create a file cleanup.bat and schedule execution in Windows Task Scheduler:
del /s /q /f C:\windows\Temp\✴.✴
for /d %%x in (C:\windows\Temp\*) do rmdir /s /q "%%x"​
(autocorrect messes up * symbols)

I'm sorry, what? This is a tad bit confusing
 
I keep running into problems where my Windows temp folder located at
This PC>Local Disk (C : > Windows > Temp
will literally hold over 164 GB of space, but will not clear itself out. I just found out how to clear it manually is there a reason why it isnt cleaning auto? ....
If/when a program terminates abnormally, or, upon normal termination, a programming error (very, very, very common) causes the temp file deletion to be skipped, any temp files it may have created become orphans and will remain until manually deleted. Windows has no way to know that these files no longer have a purpose.
 
Solution
I'm sorry, what? This is a tad bit confusing
What is confusing?

1. Create a text file called cleanup.bat with contents shown below
Code:
del /s /q /f C:\windows\Temp\*.*
for /d %%x in (C:\windows\Temp\*) do rmdir /s /q "%%x"

2. Schedule execution of bat file with windows Task scheduller. Choose execution frequency as desired - once per day, on logon or whatever.
 
Status
Not open for further replies.

TRENDING THREADS