Deleting Windows folders...
-
Y'know...I had actually given some thought to writing a utility or script to do exactly this, but I figured it ought to get more complex than I might have anticipated from the get-go. Thank you *very* much for the link, I'll be sure to check it out as soon as time permits.
yeah there's a lot of advice out there "just run takeown.exe and icacls.exe" but at some point, Windows.old directory structures started containing pathnames > 260 chars, and directory symlinks that loop back on themselves.. it's maddening! further maddening, the .NET interop to call Advapi32 to enable necessary admin permissions, was extremely non-intuitive.. lots of old, bad code out there that works on x86 but not on x64 due to differences in struct-packing (member alignment) lmk if it helps or fails in any way.. haven't tested it on Win11, yet
-
yeah there's a lot of advice out there "just run takeown.exe and icacls.exe" but at some point, Windows.old directory structures started containing pathnames > 260 chars, and directory symlinks that loop back on themselves.. it's maddening! further maddening, the .NET interop to call Advapi32 to enable necessary admin permissions, was extremely non-intuitive.. lots of old, bad code out there that works on x86 but not on x64 due to differences in struct-packing (member alignment) lmk if it helps or fails in any way.. haven't tested it on Win11, yet
Quick follow-up: I just had a quick look at the source - this is excellent stuff, my hat's off to you for putting this together. You can bet I'll be using it to clear off whatever remains on my drive. They say necessity is the mother of invention, so I think I know exactly what you went through to convince yourself to take the time to create this project. It's short(-ish), to-the-point, and despite the technical complexities involved, is very well structured and elegant code. How do I vote a 5 on GitHub? :-)
-
Quick follow-up: I just had a quick look at the source - this is excellent stuff, my hat's off to you for putting this together. You can bet I'll be using it to clear off whatever remains on my drive. They say necessity is the mother of invention, so I think I know exactly what you went through to convince yourself to take the time to create this project. It's short(-ish), to-the-point, and despite the technical complexities involved, is very well structured and elegant code. How do I vote a 5 on GitHub? :-)