Hacker News new | ask | show | jobs
by badc0ffee 38 days ago
> For months my windows 10 install would take nearly 5 minutes to start up after a full shutdown sequence.

I know you're not asking for tech support here, but I wanted to share that a friend's laptop was doing this, and the problem turned out to be a massive amount of files in %TEMP%. So many that I had to write a little PowerShell script to remove them all.

2 comments

Powershell is a great scripting language, but when you want to massively delete stuff I strongly suggest you use "robocopy /MIR" with an empty folder as source to be "mirrored". Much faster, better multithreaded performance, decent logging. It will save you a ton of time if we're talking about large and/or numerous files.
/MIR /MT:16

Kick those threads way up.

Historically, when my Windows was getting slow first thing I'd empty the thrash. Often it was the answer.
Which in the grand scheme of things, shouldn't "slow down" a system. But this is Windows where it burns IO for no reason