Can I identify which application is filling AppData\Local\Temp


stefanjan

Member
Local time
10:24 AM
Posts
4
OS
Windows 11
My 500GB m.2 Windows drive keeps on getting full due to getting full of temporary files which I then have to manually delete.

Last time I checked there was 193GB of files in C:\Users\username\AppData\Local\Temp.

Is there a way in Windows to identify the application which is creating these files?
 
Windows Build/Version
Version 23H2

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    PC Specialist
    CPU
    3.20 gigahertz AMD Ryzen 7 2700 Eight-Core
    Motherboard
    X470 AORUS ULTRA
    Memory
    32714 Megabytes
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
It's usually web browser stuff...
If you use chrome you might see "chrome" prefixed folders...
You can usually figure out the source from the folder names.. many apps use it..
Others are empty log files.

You can safely delete the contents permanently or to recycle bin.
Windows won't delete anything being used.
 

My Computer

System One

  • OS
    Win11 Pro 24H2 Build 26100.2894
    Computer type
    PC/Desktop
    Manufacturer/Model
    Powerspec
    CPU
    Intel(R) Core(TM) i9-14900KF 3.20 GHz
    Motherboard
    MSI PRO Z690-A WIFI (MS-7D25)
    Memory
    G.Skill DDR5-5600 / PC5-44800 DDR5 SDRAM UDIMM
    Graphics Card(s)
    GIGABYTE GeForce RTX 4070 Ti WINDFORCE OC 12G (GV-N407TWF3OC-12GD)
    Sound Card
    OnBoard
    Monitor(s) Displays
    Dell - various (3)
    Screen Resolution
    1920x1080
    Hard Drives
    SSD/HDD/NVME
    PSU
    850 Watt 80+ Gold Modular
    Case
    PowerSpec/Lian Li ATX 205 Mesh
    Cooling
    Coolermaster MASTERLIQUID ML240L V2 RGB
    Keyboard
    Logi MX Keys S
    Mouse
    MX Master 3S
    Internet Speed
    600 mbps
    Browser
    various (Opera, Vivaldi, Edge, Brave, Chrome)
    Antivirus
    anitmalwarebytes; superantispyware; defender
    Other Info
    Windows Feature Experience Pack 1000.26100.36.0
In my Windows 11 the temp folder is only 3.95 MB

I use Firefox+++ and Edge as my Browsers.
 

Attachments

  • Screen Shot 02-15-25 at 01.34 PM.webp
    Screen Shot 02-15-25 at 01.34 PM.webp
    13.4 KB · Views: 1

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    No Name - Assembled by a Compute shop in a Strip Mall.
    CPU
    Intel i511400
    Motherboard
    ASUS PRIME B560-PLUS motherboard
    Memory
    16 GB
    Graphics Card(s)
    0
    Sound Card
    0
    Monitor(s) Displays
    28 in Samsung
    Screen Resolution
    1920 x 1080
    Hard Drives
    6 SSDs a mixture of 3 Nvme and 3 Sata.
    PSU
    600w
    Case
    Antec- VSK4000E-U3 Mid Tower
    Internet Speed
    Bell pure fibre optic. 1 GB package. Wireless adapter +/- 500/500
    Browser
    Firefox, Microsoft Edge
    Antivirus
    Defender
For anyone coming across this thread with the same problem. I downloaded Process Monitor from Microsoft and added a Path filter.

I identified the application which was creating the files. It was actually cache being created by my DAM software. Moved the cache to another m.2 SSD.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    PC Specialist
    CPU
    3.20 gigahertz AMD Ryzen 7 2700 Eight-Core
    Motherboard
    X470 AORUS ULTRA
    Memory
    32714 Megabytes
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
I empty that temp folder at shutdown of the computer with a script. As a lot of programs don't cleanup there temp files properly.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
I empty that temp folder at shutdown of the computer with a script. As a lot of programs don't cleanup there temp files properly.
Would be great if you could share your script. Sounds like a great idea.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    PC Specialist
    CPU
    3.20 gigahertz AMD Ryzen 7 2700 Eight-Core
    Motherboard
    X470 AORUS ULTRA
    Memory
    32714 Megabytes
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
If you want to do it in a batch file, you could use

forfiles /p %TEMP% /m *.* /s /d -2 /c "cmd.exe /c del /q @path"

Explanation:

Code:
forfiles  - for each file
/p %TEMP% - in the path %TEMP%, the defined temp directory
/m *.*    - matching the pattern *.*, so any file
/s        - including sub directories
/d -2     - with a modified date at least 2 days ago
/c        - Run this command to delete the files...
"cmd.exe /c del /q @path"
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
    Antivirus
    Microsoft Defender
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
If you have not Windows Pro but Home, you cannot use a script i think for logoff/shutdown.
You can use the command in a bat file on your desktop like pseymour said, and then add a line for shutdown.
Then add an icon like this to the file Google Search so it looks good, and then use that file to shutdown your pc, instead of the shutdown option in startmenu.

Batch:
@echo off

:: Clean up temp files older than 1 day
forfiles /p "%TEMP%" /m *.* /s /d -1 /c "cmd /c del /q @path"

:: Add more folders or paths to clean up.

:: Shutdown the computer
shutdown /s /t 0
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Thanks, I have Windows 11 Pro so will give this a go.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    PC Specialist
    CPU
    3.20 gigahertz AMD Ryzen 7 2700 Eight-Core
    Motherboard
    X470 AORUS ULTRA
    Memory
    32714 Megabytes
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
is that good on SSD to clean-up daily?

usually trimming is enough on SSD. when needed, do format than delete. I would do this way.
 

My Computer

System One

  • OS
    Windows 7/11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP/Lenovo/Asus
    CPU
    Intel i7-11800H
    Motherboard
    Lenovo Legion 5i Pro Gen 6
    Memory
    32GB DDR4 3200MHz
    Graphics Card(s)
    NVIDIA GeForce RTX 3070
    Hard Drives
    1TB PCIe SSD
Livetime on good SSD is over 900TB written. Will take you along time to do that on for example 500gb or 1TB disk..
And for me Cache should not be in Temp folder. As it is part of Application Data, and should not be cleared up, otherwise it will re-generate every time.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop

Latest Support Threads

Back
Top Bottom