Jump to content

Recommended Posts

Posted

This works for me to get the version number with an SRE ...

Local $file, $page = BinaryToString(InetRead('http://www.piriform.com/ccleaner/builds', 1))
Local $aVer = StringRegExp($page, '(?i)ccsetup(.*?)_slim', 3)
;
If IsArray($aVer) Then
   MsgBox(0, 'Version Number', $aVer[0])

   $file = @ScriptDir & '\ccsetup' & $aVer[0] & '_slim.exe'
   MsgBox(0, 'Path to Download to', $file)

   InetGet('http://www.piriform.com/ccleaner/download/slim/downloadfile', $file, 1, 1)
EndIf

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...