CCleaner at shutdown

Hi everyone,

Firslty, sorry for my bad english, i'm french.

I would like CCleaner that execute at the system shutdown, and for this, i used gpedit.msc, i created a .bat file with instructions start, namely :

@echo off
cd C:\Program Files\CCleaner
start /wait CCleaner64.exe /auto

and i created 2 instructions in gpedit, shutdown and loggof, redirected to the file, but this one doesn't work...

Indeed, in the shutting down nothing happens, but the .bat is correct !

Thank you very much to your future help.

Finch

I've never made a bat file with gpedit, however one thing to try and I don't know if it will make any difference.

In the bat file put quotes around the path, so it looks like this:

"C:\Program Files\CCleaner"

Or, abandon the quotes altogether using this:

%ProgramFiles%\CCleaner

Thank you for your reply.

I used your paths, but it changes nothing.

At shutdown, nothing happens…

:(

I don't understand what's wrong...