Jump to content


Multiple config files


2 replies to this topic

#1 OFFLINE   gr3gw

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 26 February 2010 - 07:26 AM

Hi,

I would like to see multiple config files. In some programs this is call 'profiles' but another user has referred to multiple 'user profiles' which is different. I want to be able to have a config file for clean ups on a weekly basis and a different config file for monthly clean ups. At the moment I have to change the config settings but it would be wonderful if I could simple open a previously saved set of config settings and run that. Having a parameter for the command line that specifies which saved config file to use would be awesome.

#2 OFFLINE   Alan_B

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,106 posts
  • Gender:Male
  • Location:Lancashire, England

Posted 04 March 2010 - 09:39 AM

Use the Portable version of CCleaner.

Configure it for monthly clean. Close CCleaner. Then copy CCleaner.ini as Monthly.ini
Configure it for weekly clean. Close CCleaner. Then copy CCleaner.ini as weekly.ini
Create a simple batch script that includes
 
COPY %1.INI CCLEANER.INI > NUL
START CCLEANER %2 %3
NB The above %2 %3 are only needed if you want an Auto Clean and Shut-down capability

Then add to the desktop short-cuts to the script with suitable parameters.
e.g. for a script called Clean.cmd located at "H:\New Portable\CCleaner\"
"H:\New Portable\CCleaner\Clean.cmd" Monthly
"H:\New Portable\CCleaner\Clean.cmd" Weekly
"H:\New Portable\CCleaner\Clean.cmd" Weekly /AUTO /SHUTDOWN

Alan

#3 OFFLINE   gr3gw

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 04 March 2010 - 09:52 AM

Thanks Alan, I'll give that a try.