You are here

[Fixed] ccPortable v6.28 Windows Temp File Cleaning

8 posts / 0 new
Last post
lmacri
Offline
Last seen: 2 weeks 4 days ago
Joined: 2024-12-23 17:34
[Fixed] ccPortable v6.28 Windows Temp File Cleaning

I am looking for a replacement for Piriform's CCleaner Free Portable v6.x. I just started testing ccPortable v6.28, which I am running from a removable USB stick in a folder named E:\Portable\ccPortable 6_28\.

When I run Custom Clean with ccPortable and enable the option at Windows | System | Temp Files I've noticed that ccPortable only cleans C:\Windows\TEMP\ but, unlike CCleaner, it does not clean C:\Users\myusername\AppData\Local\Temp\ (which typically accumulates about 400 MB of temp files each week on my system). Is this a bug or a deliberate change by the devs?
--------------------
Dell Inspiron 15 5584 * 64-bit Win 10 Pro v22H2 build 19045.5247 * Firefox v133.0.3 * Microsoft Defender v4.18.24090.11-1.1.24090.11 * Malwarebytes Premium v5.2.4.157-1.0.5116 * Macrium Reflect Free v8.0.7783 * CCleaner Free Portable v 6.30.11385 * ccPortable 6.28.11297

ANTICHRISTUS REX
ANTICHRISTUS REX's picture
Offline
Last seen: 4 hours 21 min ago
Translator
Joined: 2019-07-19 07:09
https://alternativeto.net/

I Personally don't use CCleaner, so I may (also) suggest the Wise Cleaner Apps, some of them are already portablized!

“All these years that I had spent in the service of mankind brought me nothing but insults and humiliation.”
― Nikola Tesla ―

“I'm such an open book, but you shall read between the lines.”
― Neo Buddha ―

Mortiferon
Offline
Last seen: 1 week 2 days ago
Joined: 2020-08-05 22:27
CCleaner hasn't functioned

CCleaner hasn't functioned properly since Windows 7.

CleanUserTemp.bat

@ECHO OFF
title Clean User Temp Directory
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
/Below command to Show the folder after deleted files
Explorer %USERPROFILE%\appdata\local\temp

Before batch:
%USERPROFILE%\appdata\local\temp 7,173 folders, 23,171 files, 2.81gb

After Batch:
%USERPROFILE%\appdata\local\temp 7,173 folders, 434 files, 1.13gb

After Batch Manual [Ctrl]+[A] and [Del]:
%USERPROFILE%\appdata\local\temp 7,170 folders, 434 files, 1.13gb
____
More:

CleanWindowsTemp.bat

@ECHO OFF
title Clean Windows Temp Directory
del /s /f /q C:\Windows\Temp\*.*
/Below command to Show the folder after deleted files
Explorer C:\Windows\Temp

Before batch:
C:\Windows\Temp 0 folders, 12 files, 4.15mb

After Batch:
C:\Windows\Temp 0 folders, 1 file, 2.28mb

After Batch Manual [Ctrl]+[A] and [Del]:
C:\Windows\Temp 0 folders, 1 files, 2.28mb

CleanWindowsPrefetch.bat

@ECHO OFF
title Clean Windows Prefetch Directory
del /s /f /q C:\Windows\Prefetch\*.*
/Below command to Show the folder after deleted files
Explorer C:\Windows\Prefetch

Before batch:
C:\Windows\Prefetch 1 folder, 187 files, 5.11mb

After Batch:
C:\Windows\Prefetch 1 folder, 8 files, 267kb

After Batch Manual [Ctrl]+[A] and [Del]:
C:\Windows\Prefetch 0 folder, 5 files, 257kb

CleanUserRecent.bat

@ECHO OFF
title Clean User Recent Directory
del /s /f /q %userprofile%\Recent\*.*
/Below command to Show the folder after deleted files
Explorer %userprofile%\Recent

Before batch:
%userprofile%\Recent 0 files, 0mb

After Batch:
%userprofile%\Recent 0 files, 0mb

After Batch Manual [Ctrl]+[A] and [Del]:
%userprofile%\Recent 0 folders, 0 files, 0mb
______
*Delete:
/Below command to Show the folder after deleted files
Explorer \directory\path

to just clean without opening it after.
______
CleanAll.bat

@ECHO OFF
title Clean All Temp
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
del /s /f /q C:\Windows\Temp\*.*
del /s /f /q C:\Windows\Prefetch\*.*
del /s /f /q %userprofile%\Recent\*.*
/Below command to Show the folder after deleted files
Explorer %USERPROFILE%\appdata\local\temp
Explorer C:\Windows\Temp
Explorer C:\Windows\Prefetch
Explorer %userprofile%\Recent

But I suggest a standalone for "Recent" and "Prefetch". Prefetch isn't something that needs routine repopulation (you are just adding unnecessary write cycle counts to your SSD C:\ drive by doing so). And Recent is useful in that it can assist you in figuring out where you left off after being interrupted in the middle of whatever local stuff you were doing, which is a frequent Windows user experience since Win10.

Note: These only delete files. Folders will remain. It seems there are "issues" using other methods to get at subdirectories and files (such as with "currently in use" files, for example. As there always are in temp directories). This at least mostly resolves the problem of clutter with a significant file size penalty (empty folders are 0 bytes but each folder record is 1kb; so each empty folder does occupy at least 1kb of disk space).

John T. Haller
John T. Haller's picture
Online
Last seen: 16 min 25 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed

This should be fixed with today's 6.31.11415 release.

Sometimes, the impossible can become possible, if you're awesome!

lmacri
Offline
Last seen: 2 weeks 4 days ago
Joined: 2024-12-23 17:34
Fix Confirmed

Hi John T. Haller:

Thanks for the fix. I can confirm that if I run Custom Clean with the latest ccPortable v6.31 (rel. 30-Dec-2024) with the option at Windows | System | Temp Files ENABLED that ccPortable will now clean temp files in both C:\Windows\TEMP\ AND C:\Users\myusername\AppData\Local\Temp\.

I can also confirm that if Options | Advanced | Only Delete Files in Windows Temp Folders Older Than 24 Hours is ENABLED that ccPortable v6.31 honours that setting for both those temp folders when I run Custom Clean and will not delete any temp files in either folder created in the past 24 hours.
-----------
Dell Inspiron 15 5584 * 64-bit Win 10 Pro v22H2 build 19045.5247 * Firefox v133.0.3 * Microsoft Defender v4.18.24090.11-1.1.24090.11 * Malwarebytes Premium v5.2.4.157-1.0.5116 * Macrium Reflect Free v8.0.7783 * ccPortable 6.31.11415

ottosykora
Offline
Last seen: 3 days 7 hours ago
Joined: 2007-10-11 17:48
can not install

I was offered some update to cc portable today, but it does not work. Itsays that the downloaded copy can not be installed....

Otto Sykora
Basel, Switzerland

lmacri
Offline
Last seen: 2 weeks 4 days ago
Joined: 2024-12-23 17:34
Wrong SHA-256 Hash for ccPortable v6.31 on Download Page

Hi ottosykora:

Your comment is off-topic, but I did notice that the SHA-256 hash for ccPortable v6.31.11415 (ccPortable_6.31.11415_online.paf.exe, rel. 30-Dec-2024) on the ccPortable download page at https://portableapps.com/apps/utilities/ccportable is incorrectly listed as 157e936968ec89a6e531a7f0e7322e498811f8cb0c19b42163030a66bbc33da8. That is the old SHA-256 hash for the previous ccPortable 6.28.11297 (ccPortable_6.28.11297_online.paf.exe).

When I upload the new ccPortable_6.31.11415_online.paf.exe file to VirusTotal at https://www.virustotal.com/gui/home/upload the new SHA-256 hash is reported as 7a1bedfc16bd1289184f4fa19152ef90659a0e3b347cc177d91ed5afe6f02c51.

I didn't use the PortableApps.com Platform Updater to update from ccPortable v6.28 to v6.31 (I manually "installed" ccPortable_6.31.11415_online.paf.exe in a new folder called E:\Portable\ccPortable 6_31 on a removable USB stick and then copied and pasted the ccleaner.ini file from the previous v6.28 over to E:\Portable\ccPortable 6_31\Data\ to keep my configuration settings) so perhaps that's why ccPortable v6.31 is running correctly on my system.
-----------
Dell Inspiron 15 5584 * 64-bit Win 10 Pro v22H2 build 19045.5247 * Firefox v133.0.3 * Microsoft Defender v4.18.24090.11-1.1.24090.11 * Malwarebytes Premium v5.2.4.157-1.0.5116 * Macrium Reflect Free v8.0.7783 * ccPortable 6.31.11415

ottosykora
Offline
Last seen: 3 days 7 hours ago
Joined: 2007-10-11 17:48
works today

Have just now tried again and the update was done in normal way

Otto Sykora
Basel, Switzerland

Log in or register to post comments