Check for new official version

Discuss and share scripts and script files...
Post Reply
admin
Site Admin
Posts: 66249
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Check for new official version

Post 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!";
  } 

JoyceAE
Posts: 22
Joined: 17 Oct 2009 22:52

Re: Check for new official version

Post by JoyceAE »

And where would I put this nice script? I am not familiar with scripting in XYplorer.

Joyce

admin
Site Admin
Posts: 66249
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Check for new official version

Post 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? :wink:

EnjoyRC
Posts: 101
Joined: 08 Nov 2010 21:54

Re: Check for new official version

Post by EnjoyRC »

All good stuff though... I didn't even see the ReadURL script command before now.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Check for new official version

Post 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";}

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Check for new official version

Post 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.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply