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)
UpdateToLatestBeta v0.2
-
pseudoz
- Posts: 60
- Joined: 11 Mar 2009 20:41
- Contact:
UpdateToLatestBeta v0.2
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)
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)
To see the attached files, you need to log into the forum.
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: UpdateToLatestBeta v0.2
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.
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*
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;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*
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
-
pseudoz
- Posts: 60
- Joined: 11 Mar 2009 20:41
- Contact:
Re: UpdateToLatestBeta v0.2
All improvments are welcome of course 
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: UpdateToLatestBeta v0.2
Nice streamlined code
Remember to credit whoever inspired you, if any.
Remember to credit whoever inspired you, if any.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
pseudoz
- Posts: 60
- Joined: 11 Mar 2009 20:41
- Contact:
Re: UpdateToLatestBeta v0.2
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
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
XYplorer Beta Club