Thanks, I needed that hint.
I got my results with the command line:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v 2 /t REG_SZ /d "\"X:CCleaner\CCleaner.exe\" /auto" /f
A seperat regfile is not needed.
Lexem
CCleaner has only two sorts of automation 1. the /auto parameter to scan during a windows session and 2. the option to scan on EVERY start of windows.
First wish: An option or parameter to make CCleaner scan and clean ONLY on next windows start would be nice.
Second wish: A log entry in the event viewer so CCleaner can work with eventtriggers.exe
Both wishes make CCleaner behave more like chkdsk.exe
Thanks for this programm.
Lexem