AetherMaster Posted August 29, 2009 Posted August 29, 2009 Hello, I have a question for you all. Is there a way to make a script check a version number (let's say it's from mywebsite.com/version.txt) and compare it to a variable in the script (let's say that it's $myversion = "2.0"), then have a dialog box come up if there is a newer version online?
corgano Posted August 29, 2009 Posted August 29, 2009 Hello, I have a question for you all. Is there a way to make a script check a version number (let's say it's from mywebsite.com/version.txt) and compare it to a variable in the script (let's say that it's $myversion = "2.0"), then have a dialog box come up if there is a newer version online? Something like this? ;you may want this at the start of the script. Local $currentver = "1" InetGet ("mywebsite.com/version.txt",@ScriptDir & "\version.txt") $latestver = FileRead(@ScriptDir & "\version.txt") FileDelete(@ScriptDir & "\version.txt") If $latestver > $currentver Then _downloadnewver() Func _downloadnewver() ;insert script here EndFunc 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e
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