Jump to content











Photo

cc cleaner how to clean the guest system?


  • Please log in to reply
1 reply to this topic

#1 garack

garack

    Newbie


  • Members
  • 20 posts
  •  
    Germany

Posted 29 July 2012 - 05:49 PM

Hi, whats the sense of the ccleaner , it only cleans up the hires files?

How to configure it so it runs on my guest system ?

#2 amalux

amalux

    Platinum Member


  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 29 July 2012 - 07:00 PM

The simplest is to rt-click and choose run with runscanner from PE ;)

You can run from command line or batch with:
Runscanner.exe /t 0 /sd /ac /m+ /y CCleaner.exe

but this doesn't take into account different architectures or whether it's run from PE or full Windows etc.

so a more complete batch looks like this:
@echo off

setlocal

set RegQry=HKLMHardwareDescriptionSystemCentralProcessor0

reg.exe Query %RegQry% > lOS.txt

find /i "x86" < lOS.txt > lSC.txt

if %ERRORLEVEL% == 0 (

if /i '%systemdrive%'=='x:' goto pe

if /i '%systemdrive%'=='y:' goto pe

CCleaner.exe

goto end

:pe

Runscanner.exe /t 0 /sd /ac /m+ /y CCleaner.exe

goto end

) ELSE (

if /i '%systemdrive%'=='x:' goto pe

if /i '%systemdrive%'=='y:' goto pe

CCleaner64.exe

goto end

:pe

Runscanner.exe /t 0 /sd /ac /m+ /y CCleaner64.exe

)

:end

endlocal

if exist RunScanner.exe del RunScanner*

if exist CCleaner.exe del CCleaner*

del /q lOS*,lSC*,cc*,port*

del %0

or with AU3 like this:
Local $Offline



$SystemDrive = EnvGet('SystemDrive')

If @WorkingDir <> @ScriptDir Then

FileChangeDir(@ScriptDir)

EndIf



If $SystemDrive = ('X:') Then

$Offline = FileSelectFolder("Choose an offline Windows folder.", "")

If @error Then

MsgBox(16, "Selection Error", "Not a valid Windows folder ", 3)

Exit

Else

If @OSArch = 'x64' Then

RunWait(@COMSPEC & ' /c "RunScanner.exe /t 0 /w ' & $Offline & ' /ac /m+ /y CCleaner64.exe"',"", @SW_HIDE)

Else

RunWait(@COMSPEC & ' /c "RunScanner.exe /t 0 /w ' & $Offline & ' /ac /m+ /y CCleaner.exe"',"", @SW_HIDE)

EndIf

EndIf

Else

If @OSArch = 'x64' Then

RunWait(@COMSPEC & ' /c "CCleaner64.exe"',"", @SW_HIDE)

Else

RunWait(@COMSPEC & ' /c "CCleaner.exe"',"", @SW_HIDE)

EndIf

EndIf



If @WorkingDir <> @ScriptDir Then

FileChangeDir(@ScriptDir)

EndIf



Run(@COMSPEC & ' /c "cln.cmd"',"", @SW_HIDE)

With any of these, make sure to have RunScanner.exe and RunScannerDLL.dll http://www.paraglide...ins/plugins.htm along with your CCleaner files.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users