Relative path support

I like CCleaner's ability to run & delete a custom path, such as:

C:/Program Files/CCleaner/Lang etc, but what happens if a user is on for example:

F:/Program Files/CCleaner/Lang etc?

____________________________________

How to clean? CCleaner only allows a hard path to the file/object.

I'd love to see the option to include something most users are familiar with, such as:

%ProgramFiles%/CCleaner/Lang

Even better, offer the user the "Relative Path" or the hard linked path as a choice (CCleaner detects the path & offers the relative also to the user as an option)

____________________________________

At any rate, I want to see relative path support in CCleaner.

It will make things so much easier, per above example why...

super-fast you're around enough to know, but you should search the forum before making suggestions. It's a often suggested feature (including by @Winapp2.ini ) for custom folders to support environmental variables.

but what happens if a user is on for example:

F:/Program Files/CCleaner/Lang etc?

Either make a batch file to do the deletion, or manually delete it. Whenever I install a new program I always zap extra lang files I'll never need.

I've been dying for this feature. It'd pretty much solve the "unable to create cleaning entries for program XYZ because it has user specific folders" problem!

Yes, I have been dying for it too.

Environment variable support/relative paths would be a lot more reliable than hardcoded paths that can be quite flaky at times...

+ 3 from me! Ok, maybe that was a lot of +, but I really want it! LOL! :P

Yes, I have been dying for it too.

Environment variable support/relative paths would be a lot more reliable than hardcoded paths that can be quite flaky at times...

+ 3 from me! Ok, maybe that was a lot of +, but I really want it! LOL! :P

it's kinda bad form to plus yer own thread matey. Just sayin.

it's kinda bad form to plus yer own thread matey. Just sayin.

Sorry, man. I get excited sometimes. I wanted it for years...

Heh heh! Well, guess a guy can dream, anyway.

Maybe one day. Who knows? B)

I like CCleaner's ability to run & delete a custom path, such as:

C:/Program Files/CCleaner/Lang etc, but what happens if a user is on for example:

F:/Program Files/CCleaner/Lang etc?

Batch script may be a possible solution

SET ProgramFiles=F:/Program Files
CCLEANER.EXE 

Then any reference in WinApp2.ini or a CCleaner.ini INCLUDE might hit the alternative target.

This substitute value only affects that which is launched by this instance of CMD.EXE.

N.B. Try first on Portable version of CCleaner,

I view with suspicion anything that is controlled by the registry ! !

Batch script may be a possible solution

SET ProgramFiles=F:/Program Files
CCLEANER.EXE 

Only problem I see with that, is it would be easier to just use includes. Environment variables could take care of this with ease, but hardcoded paths break.

What I mean is, if you set it for F, then if you had another one that the Program Files directory is say, E:, & another G:, then you still have to manually "update" whether the includes, or the batch script.

What I mean is, if you set it for F, then if you had another one that the Program Files directory is say, E:, & another G:, then you still have to manually "update" whether the includes, or the batch script.

Manual update is not needed.

Just a single revision to the BAT script then no more manual updates, e.g.

SET ProgramFiles=E:/Program Files
START /WAIT CCLEANER.EXE 
SET ProgramFiles=F:/Program Files
START /WAIT CCLEANER.EXE 
SET ProgramFiles=G:/Program Files
START /WAIT CCLEANER.EXE 
SET ProgramFiles=H:/Program Files
START /WAIT CCLEANER.EXE 

I hated Xmarks for the tremendous wastage of some many folders and files dedicated to foreign languages.

It wasted more space and directory/MFT entries than all the rest of my FireFox Extensions.

Now I do not get mad, I get even.

I doubt Winapp2.ini could match my code below :-

PUSHD .
echo Purging foreign languages from Xmarks
CD /D %APPDATA%\Mozilla\Firefox\Profiles\*.DEF\EXTENS~1\FOXMAR~1.COM\chrome\locale\
IF NOT EXIST F* GOTO SKIP
DIR | FIND "/"
SET ANS=N & SET /P ANS="PURGE all above except en-US ?  P(urge) / N(o) :- "
IF %ANS% NEQ P GOTO SKIP
ECHO PURGING ...
FOR /D %%X IN (*) DO IF NOT %%X==en-US RMDIR /S /Q %%X
PAUSE
:SKIP
POPD

REM C:\PROGRA~1\ERUNT\AUTOBACK.EXE C:\Windows\ERDNT\AutoBackup#Date#_#Time# sysreg curuser otherusers

IF “%1” NEQ “/SHUTDOWN” START CCLEANER64 %2 & EXIT
ECHO INVOKING “START CCLEANER64 /AUTO %1”
START CCLEANER64 /AUTO %1
EXIT

N.B.

The ERUNT registry backup was commented out when I upgraded from Acronis to Macrium backup,

so very much better and more certain.

Manual update is not needed.

Just a single revision to the BAT script then no more manual updates, e.g.

SET ProgramFiles=E:/Program Files
START /WAIT CCLEANER.EXE 
SET ProgramFiles=F:/Program Files
START /WAIT CCLEANER.EXE 
SET ProgramFiles=G:/Program Files
START /WAIT CCLEANER.EXE 
SET ProgramFiles=H:/Program Files
START /WAIT CCLEANER.EXE 

I see.

Could hold potential.

So just basically a-z the program files directory?

Just might work!

Although, if you have a lot of directories on a lot of drives, relative path support might start to look good.

Will have to try to think a little & see what I can come up with.

U are kinda inventive, aren't u?

Haha!

Thanks for the ideas!