Thanks to Shawn, I got the Recycle Bin thing fully under control, then Firefox threw me a curve.
Unlike Edge, which is part of Windows, and is the same with every install, Firefox on the other hand is an External Program and with every install it sets its own path to it's Temporary Internet Files.
I googled to find out where Firefox stores its Temp files and the guy whose answer I saw first, gave the path to that location on his own PC. Well of course, that was not the same as the path on my PC.
So far, I've installed my cleanup batch file on four different HD's. And on every one, the path to Firefox's temp files is in a differently named directory/folder.
So, if someone is going to write their own batch file to get rid of Temporary Internet Files, that can build up faster than old newspapers,
in Win-11, here's the command for deleting the files from "MS Edge"....
Del /f /s /q "C:\Users\%Username%\AppData\Local\Microsoft\Edge\User Data\Default\Cache\Cache_Data\*.*"
That should be the same on every PC running both Edge and Windows 11.
But for Firefox, it gets a little more complicated:
Del /f /s /q "C:\Users\%Username%\AppData\Local\Mozilla\Firefox\Profiles\xxxxxxxx.default-release\cache2\entries\*.*"
where
\xxxxxxxx will vary with every install of Firefox. So you'll need to look in your own PC for the numbers and letters that go in that location.
I've gone through this several times now, on different computers, and every time those 8 characters are different.
So that precludes me sharing my batch file with anyone else, and expect it to run without some Editing.
If I personally install my batch file for a friend or customer, I'll have to edit it, to conform to Firefox's temp files location on that particular PC.
I'm thinking that maybe a wild card would work for those 8 (alpha Numeric) characters, but so far, all attempts to do that have failed.
No problem. I just edit that line on each install of Win-11, where I install Firefox.
Cheers Mates!
TM
