SomeAutoItNewbie Posted May 15, 2008 Share Posted May 15, 2008 Does anyone have a script which I can embed in, or call from, my own script to check if a newer version of my script it available (over an intranet) ? Thanks in advance for any help. Link to comment Share on other sites More sharing options...
d4rk Posted May 15, 2008 Share Posted May 15, 2008 (edited) i have a small one in my Sig, but someone (i don't remember) wrote a great one, search on the 4rum plz Edited May 15, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
SomeAutoItNewbie Posted May 15, 2008 Author Share Posted May 15, 2008 i have a small one in my Sig, but someone (i don't remember) wrote a great one, search on the 4rum plzThank you *very* much! Link to comment Share on other sites More sharing options...
sshrum Posted May 15, 2008 Share Posted May 15, 2008 (edited) I do this:In each of my scripts, I have a variable that stores my script version: $sVersion= 1.01On my website, where I store the binary of the script, I have a file called version.txt (you can set your's up with the scriptname.ver if you want).In the script, I set it up to go to the website and read the content of the version.txt file (example):[version.txt]1.03Then in my script, I pull the "source" of the page and get back the current version$fCurrentVer = _InetGetSource("http://www.shrum.net/code/vistas/bin/version.txt")if $fCurrentVer > $sVersion then there is a newer version available and you can code as needed to have you app pull down the newer version.EDIT: just noticed you wrote 'intrAnet'...same idea, just filereadline() the version.txt file$fCurrentVer = FileReadLine("\\computername\share\version.txt")I think you can user UNC pathnames with that function... Edited May 15, 2008 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...
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