Page 1 of 1
Check for new official version
Posted: 11 Nov 2010 13:23
by admin
I uploaded a file version.php that just contains the current official version. Hence you can now use a script like this to check:
Code: Select all
$ver = readurl("http://www.xyplorer.com/version.php");
if (compare($ver, <xyver>, "v") == 1) {
msg "There is a new official version ($ver) available for download!";
}
Re: Check for new official version
Posted: 11 Nov 2010 14:07
by JoyceAE
And where would I put this nice script? I am not familiar with scripting in XYplorer.
Joyce
Re: Check for new official version
Posted: 11 Nov 2010 14:09
by admin
JoyceAE wrote:And where would I put this nice script? I am not familiar with scripting in XYplorer.
Joyce
I'm just thinking about adding a command switch
/cfu=1, no scripting needed. I guess that would be easier?

Re: Check for new official version
Posted: 11 Nov 2010 14:44
by EnjoyRC
All good stuff though... I didn't even see the ReadURL script command before now.
Re: Check for new official version
Posted: 11 Nov 2010 14:47
by Stefan
This script seams to do nothing for me,
since my used build 9.70.002 is newer than the official version 9.70.000
so i see nothing after executing the script.
So i added an 'else' to not confuse the user:
Code: Select all
$ver = readurl("http://www.xyplorer.com/version.php");
if (compare($ver, <xyver>, "v") == 1) {
msg "There is a new official version ($ver) available for download!";
} else {msg "Official version ($ver). Your version <xyver> is current";}
Re: Check for new official version
Posted: 11 Nov 2010 19:53
by SkyFrontier
JoyceAE wrote:And where would I put this nice script? I am not familiar with scripting in XYplorer.
You may want to refer to this:
Tips: Managing Scripts.
Please post any other question if that was not enough for you.