ripdad Posted August 13, 2011 Posted August 13, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now