Sign in to follow this  
Followers 0
SomeAutoItNewbie

Seeking "check for new version" script

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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

Share this post


Link to post
Share on other sites

i have a small one in my Sig, but someone (i don't remember) wrote a great one, search on the 4rum plz

Thank you *very* much! :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I do this:

In each of my scripts, I have a variable that stores my script version:

$sVersion= 1.01

On 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.03

Then 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 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'

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0