Page 1 of 1

UpdateToLatestBeta v0.2

Posted: 13 Dec 2013 13:21
by pseudoz
Mini script to have XYplorer uptodate each day :)

Tested under Windows 8.1 x64 (Because I 'm not sure the "timeout" command, used in this script, is available in others versions of Windows like XP and Vista)

Re: UpdateToLatestBeta v0.2

Posted: 13 Dec 2013 15:47
by highend
I hope you don't mind that I've modified your code a bit...

Most important change: It allows the user to keep older versions.
If anything bad happens you have a quick way to restore an older beta version.

Code: Select all

$backupVersions = 0;
By default backup old versions is off.

Any value > 0 = Keep this number of old versions.
By default they are stored in a folder named "@XY_Archive" (inside the XY main folder).

Ofc they use the complete beta versioning scheme instead of the abbreviated major
version number.

I removed the "savesettings;" line, "exit;" uses whatever the user configured inside
Configuration | Startup & Exit | Save settings on exit.

Instead of "timeout <value>" for the .bat script I've used an "invisible" ping. Works
even under the ancient Windows XP.

I was always to lazy to build a "small" version as yours so this time I took the chance *g*
UpdateToLatestBeta.xys

Re: UpdateToLatestBeta v0.2

Posted: 13 Dec 2013 16:19
by pseudoz
All improvments are welcome of course :appl:

Re: UpdateToLatestBeta v0.2

Posted: 13 Dec 2013 21:22
by Marco
Nice streamlined code :appl:
Remember to credit whoever inspired you, if any.

Re: UpdateToLatestBeta v0.2

Posted: 13 Dec 2013 22:13
by pseudoz
Arf I was sure (this script was only for me at the beginning but why not to publish it)

We are not here to make some kind of competition Marco (I recognize here the human nature)
We are here to advance and optimize XYplorer (so many new usefull functions everyday provided by Don)

Of course I thanks:
- Don for XYplorer
- You Marco for SimpleUpdater http://www.xyplorer.com/xyfc/viewtopic. ... pleupdater

but also
- Drewkeller for OpenUpdater http://www.xyplorer.com/xyfc/viewtopic. ... penupdater
and the oldest one
- Jacky for XYplorer Automatic Updater http://www.xyplorer.com/xyfc/viewtopic. ... ic+updated

All those scripts give me headache by their complexity (but Don made ​​the necessary to reduce the code since)

Have a look on my scripts (see my profil for that)

My motto: why make it simple when you can do complicate ?


All is said
Pseudoz