I'm having a persistent issue with my wife's computer, which keeps generating numerous tmpxxx subdirectories in the C:windowstemp folder, where 'xxx' represents random characters (like tmp1y074wl8). Each of these directories contains another one named 'genpy,' suggesting that a Python application might be responsible for their creation. Although the directories are empty and don't take up much space, they can't be deleted easily—even in safe mode—and changing their permissions doesn't help. I've tried several troubleshooting steps, including running a full virus scan, performing CHKDSK, and using DISM (which gets stuck at 62.3% quite often), but no luck. The System File Checker hasn't revealed any issues either. Curiously, I don't encounter this issue on my own computer, despite having the same software installed, although she uses the Spanish version of Windows while I have the English one. This problem has persisted for quite a while now, and I'm looking for suggestions to tackle the underlying cause.
1 Answer
You might want to try adjusting the TMP and TEMP environment variables to point to a different directory like C:Temp. It could help since it sounds like you're having permission issues in the original folder, and it might make cleanup easier down the line.

Thanks for the tip! I usually don’t have issues deleting other files in C:windowstemp, but I’ll give this a shot.