Page 1 of 1
XY-Update-Batch
Posted: 20 Feb 2008 14:08
by fishgod
after downloading the newest beta everyday, I get tired of doing the same work everyday, so i created this small batch-file:
Code: Select all
@ECHO OFF
IF EXIST xyplorer_6.80_beta_noinstall.zip DEL xyplorer_6.80_beta_noinstall.zip
ECHO Downloading newest beta...
WGET -q "http://www.xyplorer.com/download/xyplorer_6.80_beta_noinstall.zip"
ECHO.
ECHO Please close XYplorer, or it will be killed (when it's get killed, it won't save your current conf!)
PAUSE
TASKKILL /IM:xyplorer.exe
ECHO.
UNZIP -o xyplorer_6.80_beta_noinstall.zip XYplorer.exe -d C:\Programme\XYplorer\
ECHO.
ECHO All done... press any key to start XY
PAUSE
START C:\Programme\XYplorer\XYplorer.exe
Save that code as .bat-File, and place wget and unzip anywhere it can be found by the script. Maybe you have to change the path to XY's root to "C:\Programm Files\..." or whereever your XY is located.
I hope this will be usefull for you folks.
For those who don't have wget or unzip, download
wget here (~160kb), and
unzip here (~100kb)
(if you don't trust me, check the files with your favorite antivir

)
Posted: 20 Feb 2008 16:09
by graham
Thanks, I like it but for those with XPHOME it needs a few mods.
I set up a new dir in my c:\program files\xyplorer\autoupdate
in that were files
unzip.exe
wget.exe
update xyplorer.bat (see changes below for xphome)
set up udc open the bat file with a key shift+ctrl+X
all works, very good, thanks.
---------------------
changed the update xyplorer.bat as follows
---------------------
Code: Select all
@ECHO OFF
IF EXIST xyplorer_6.80_beta_noinstall.zip DEL xyplorer_6.80_beta_noinstall.zip
ECHO Downloading newest beta...
WGET -q "http://www.xyplorer.com/download/xyplorer_6.80_beta_noinstall.zip"
ECHO.
ECHO Please close XYplorer, or it will be killed (when it's get killed, it won't save your current conf!)
PAUSE
TSKILL xyplorer
ECHO.
UNZIP -o xyplorer_6.80_beta_noinstall.zip XYplorer.exe -d C:\Program Files\XYplorer\
ECHO.
ECHO All done... press any key to start XY
PAUSE
cd \
cd program files\xyplorer
START XYplorer.exe
----------------------------------
Posted: 20 Feb 2008 18:15
by serendipity
Thanks for this script, quite handy.
Update: mine is:
Code: Select all
@ECHO OFF
IF EXIST xyplorer_6.80_beta_noinstall.zip DEL xyplorer_6.80_beta_noinstall.zip
ECHO Downloading newest beta...
WGET -q "http://www.xyplorer.com/download/xyplorer_6.80_beta_noinstall.zip"
ECHO.
ECHO Please close XYplorer, or it will be killed (when it's get killed, it won't save your current conf!)
PAUSE
TASKKILL /IM:xyplorer.exe
ECHO.
UNZIP -o xyplorer_6.80_beta_noinstall.zip XYplorer.exe -d "C:\Program Files\XYplorer"
ECHO.
ECHO All done... press any key to start XY
PAUSE
c:
cd Program Files\XYplorer
START XYplorer.exe
Posted: 09 Mar 2008 19:04
by fishgod
That batch is very usefull but isn't very shiny...
So I decided to make a second edition, more code-lines, doing the same, but reporting several status-infos and SHINY
UpdateXY.bat (or rename to your favorite name)
Code: Select all
@ECHO OFF
MODE CON COLS=32 LINES=17
COLOR 0F
TITLE XYp-UPDATER
REM !!!EDIT XY-PATH HERE!!!
SET xypath=C:\Programme\XYplorer\
SET C2TEXT=
SET DTEXT=
SET KTEXT=
SET ZTEXT=
SET C1TEXT=CLEANING ...
CALL status.bat
IF EXIST xyplorer_6.80_beta_noinstall.zip (
DEL xyplorer_6.80_beta_noinstall.zip>NUL
IF EXIST xyplorer_6.80_beta_noinstall.zip SET C1TEXT=CLEANING ... [FAIL]
IF NOT EXIST xyplorer_6.80_beta_noinstall.zip SET C1TEXT=CLEANING ... [DONE]
) ELSE (
SET C1TEXT=CLEANING ... [SKIP]
)
SET DTEXT=DOWNLOADING ...
CALL status.bat
WGET -q "http://www.xyplorer.com/download/xyplorer_6.80_beta_noinstall.zip">NUL
IF %ERRORLEVEL%==0 SET DTEXT=DOWNLOADING ... [DONE]
IF NOT %ERRORLEVEL%==0 SET DTEXT=DOWNLOADING ... [FAIL]
SET KTEXT=KILLING ...
CALL status.bat
ECHO. PRESS ANY KEY TO KILL XYplorer
PAUSE>NUL
TASKKILL /IM:xyplorer.exe>NUL
IF %ERRORLEVEL%==0 SET KTEXT=KILLING ... [DONE]
IF NOT %ERRORLEVEL%==0 SET KTEXT=KILLING ... [FAIL]
SET ZTEXT=UNZIPPING ...
CALL status.bat
UNZIP -o xyplorer_6.80_beta_noinstall.zip XYplorer.exe -d %xypath%>NUL
IF %ERRORLEVEL%==0 SET ZTEXT=UNZIPPING ... [DONE]
IF NOT %ERRORLEVEL%==0 SET ZTEXT=UNZIPPING ... [FAIL]
SET C2TEXT=CLEANING ...
CALL status.bat
IF EXIST xyplorer_6.80_beta_noinstall.zip (
DEL xyplorer_6.80_beta_noinstall.zip>NUL
IF EXIST xyplorer_6.80_beta_noinstall.zip SET C2TEXT=CLEANING ... [FAIL]
IF NOT EXIST xyplorer_6.80_beta_noinstall.zip SET C2TEXT=CLEANING ... [DONE]
) ELSE (
SET C2TEXT=CLEANING ... [SKIP]
)
CALL status.bat
ECHO. PRESS ANY KEY TO START **XYp**
PAUSE>NUL
START %xypath%XYplorer.exe>NUL
EXIT
(for wget and unzip look in the initial posting)
status.bat (if you want to rename it, you also have change the name in your main-batch-file !)
Code: Select all
@ECHO OFF
CLS
TITLE XYp-UPDATER
ECHO.
ECHO. XYp-UPDATER fishgod 2008
ECHO. ------------------------------
ECHO.
ECHO. %C1TEXT%
ECHO.
ECHO. %DTEXT%
ECHO.
ECHO. %KTEXT%
ECHO.
ECHO. %ZTEXT%
ECHO.
ECHO. %C2TEXT%
ECHO.
ECHO. ------------------------------
All pre-XPPRO-Users (including XY-Home) can't use the TASKKILL-command (download a alternative taskkiller (e.g.
PC-Welt KILL.EXE)) and replace "TASKKILL /F /IM:" with "KILL "
The tools WGET, UNZIP and KILL must be in the same folder as the batches are, or in a folder registerd to your local path-variable (e.g. C:\WINDOWS\system32)
Posted: 10 Mar 2008 14:30
by graham
Funny, I went the other way and now have a script to save settings, call the bat file and no interventions or displays! One single click and XY updated in about 30 seconds, loaded and on screen.
Posted: 28 Mar 2008 20:21
by admin
graham wrote:Funny, I went the other way and now have a script to save settings, call the bat file and no interventions or displays! One single click and XY updated in about 30 seconds, loaded and on screen.
Wow, thanks guys graham + fishgod! Impressive!

Posted: 17 Apr 2008 20:27
by eurytos
I modified what serendipity had a bit to get:
@ECHO OFF
SETLOCAL
IF EXIST xyplorer_7.00_beta_noinstall.zip DEL xyplorer_7.00_beta_noinstall.zip
WGET -q "
http://www.xyplorer.com/download/xyplor ... nstall.zip"
TASKKILL /IM:xyplorer.exe
ECHO Press any key to overwrite current installation.
PAUSE
"C:\Program Files\7-Zip\7z.exe" x xyplorer_7.00_beta_noinstall.zip XYplorer.exe -y -o"C:\Program Files\XYplorer"
CD "C:\Program Files\XYplorer\"
START XYplorer.exe
I use 7-zip and that is pretty much the only difference except I removed the notifications. I also had to add a PAUSE after killing the task because it was trying to ovewrite too quickly and i was getting error messages. It also works as an oh-@%#% if I didn't want to update for some reason.