System variables with Ccleaner portable

I use VLC portable to play DVD's and other video/audio files, and Ccleaner portable to help clean out my tracks after. Both are installed (along with several other portable programs) on my flash drive.

Since I use it on several different PCs, I wanted to set up custom folder cleaning for

%appdata%/dvdcss

and

%appdata/dvdcss-BackupByVLCPortable.

However, it doesn't work. I can set up a custom clean by pointing it directly to the folder, i.e. C:\...

But, this would mean I'd have to set it up for each loginID individually. I want it to clean these folders no matter who's logged in. I'm setting it up directly from the program, and it's showing up in the .ini as:

Include1=PATH|%appdata%\|dvdcss

Exactly how should I type this in the .ini file? Am I missing something? Any help is appreciated. Thanks.

Hi tedkord

If you are using VLC Media Player Portable from this website (PortableApps.com)

then you don't have to worry about leaving files behind.

(make sure that you have the latest version)

Anyway, here's a guide on how to use the winapp2.ini file.

Here's also something about the system variables in CCleaner.

I hope that helps. ;)

You could try it a different long about way:

%userprofile%\application data\dvdcss

You may also want to check here, as I've seen dvdcss located here before too:

%userprofile%\.dvdcss

And make sure you have those variables like appdata wrapped in those percentage marks % like %appdata% otherwise it won't work, such as this one listed won't work:

%appdata/dvdcss-BackupByVLCPortable

Also I don't if you're having issues since your separators are using / instead of \

I don't know if this will work Include1=PATH|%appdata%\|dvdcss

however this might:

Include1=PATH|%appdata%\dvdcss\|*.*

Include2=PATH|%appdata%\dvdcss-BackupByVLCPortable\|*.*

If changing the include path make sure you run an Analyze first though before committing to the actual cleaning!

Hi tedkord

If you are using VLC Media Player Portable from this website (PortableApps.com)

then you don't have to worry about leaving files behind.

(make sure that you have the latest version)

Anyway, here's a guide on how to use the winapp2.ini file.

Here's also something about the system variables in CCleaner.

I hope that helps. ;)

That's exactly the one I'm using, and while it does clean up %appdata%\VLC, it leaves the dvdcss folders. Every time.

I figured out the winapp2.ini fix already, and can now delete the two dvdcss folders. Thanks. I'm now working on deleting selectively the vlc, and other portable app prefetch files from %systemroot%\prefetch. Haven't gotten this to work yet - not even sure if this is a protected system folder (don't think so since I can manually delete them).

To get rid of the dvdcss folders (and the VLC folder, in case VLC protable crashes and doesn't clean itself):

[*VLCPortable]

LangSecRef=3023

Default=True

FileKey1=%appdata%\dvdcss|*.*|REMOVESELF

FileKey2=%appdata/dvdcss-BackupByVLCPortable|*.*|REMOVESELF

FileKey3=%appdata%\vlc|*.*|REMOVESELF

So far so good.

EDIT:

Well, clearing the prefetch data works on my home XP Pro system, but not on another system. Both are XP Pro, but my home sysroot is C:\WINDOWS, the other is C:\WINNT. Wonder if that is an issue?

[*Prefetch]

LangSecRef=3025

Default=True

FileKey1=%systemroot%\Prefetch|vlc*.*

FileKey2=%systemroot%\Prefetch|ccleaner*.*

FileKey3=%systemroot%\Prefetch|cdisplayex*.*

FileKey4=%systemroot%\Prefetch|pstart*.*

FileKey5=%systemroot%\Prefetch|smplayer*.*

FileKey6=%systemroot%\Prefetch|mplayer*.*

FileKey7=%systemroot%\Prefetch|dxlist*.*

EDIT: Spoke too soon. It detects the prefetch files on analyze, but does not delete them on run. Hmm...

Perhaps something to try, altough I don't know if it will make any difference:

Change your prefetch deletion from for example:

FileKey1=%systemroot%\Prefetch|vlc*.*

to:

FileKey1=%systemroot%\Prefetch|vlc*.pf

or:

FileKey1=%windir%\Prefetch|vlc*.*

or:

FileKey1=%windir%\Prefetch|vlc*.pf