Clever1mba Posted May 11, 2005 Share Posted May 11, 2005 Hello Here im with new Problem im using this code in my applicationOKButton()Func OKButton()If FileExists(@SystemDir & "\Myfiles.cab") ThenRun("EXPAND C:\windows\system32\Myfiles.cab -f:* c:\windows\system32", "", @SW_HIDE)ElseInetGet("http://www.domain.com/Myfiles.cab", @SystemDir & "\Myfiles.cab")EndIfEndFuncProblem is thats when InetGet download cab file to internet during download cab file net connection disconnected half Cab Files Exists and give error is THere any way To Get FULL Bytes fo file then FileExists like FileGetSizeany Solution help Alot Thanks --------------------------------------------------- Link to comment Share on other sites More sharing options...
sshrum Posted May 11, 2005 Share Posted May 11, 2005 (edited) InetGetSize(). After InetGet(), you can confirm the file size matches the local copy. That's what I'd do off the top of my head. Unless, of course this is a timeout issue (if there is such a thing)...that would depend on the file size and your connection speed. Edited May 11, 2005 by sshrum Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
Clever1mba Posted May 11, 2005 Author Share Posted May 11, 2005 (edited) HELLO THANKS I GOT SOLUTION MY OWN HERE IT IS OKButton()Func OKButton()$size = FileGetSize(@SystemDir & "\Myfiles.cab")If $size = 658658 thenRun("EXPAND C:\windows\system32\Myfiles.cab -f:* c:\windows\system32", "", @SW_HIDE)ElseInetGet("http://www.domain.com/Myfiles.cab", @SystemDir & "\Myfiles.cab")EndIfEndFunc Edited May 11, 2005 by asimzameer Link to comment Share on other sites More sharing options...
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