Jump to content

Seeking "check for new version" script


Recommended Posts

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

Link to comment
Share on other sites

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'

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...