:: Command script (batch file) [DOS/Windows] :: From: Chef :: To: chromium.woolyss.com :: Date: 6 Sep 2014, 16:53 :: -------------------------------------------------------- @echo off setlocal :: ### Adjust these variables to fit your needs ### set _7zip_=C:\path\to\7zip set source=D:\Desktop\chrome-win32.zip set target=%ProgramFiles% :: ################################################## title Chromium Update %source% set path=%path%;%_7zip_% tasklist /FI "IMAGENAME eq chrome.exe" /FO LIST 2>NUL | findstr "chrome.exe">NUL IF %ERRORLEVEL% EQU 0 echo.Error: Chromium is currently running! && goto done cd /d %target% || echo.Error: Target directory does not exist! && goto done 7za.exe x -x!chrome-win32/interactive_ui_tests.exe -o"%target%" "%source%" IF %ERRORLEVEL% NEQ 0 goto done rmdir /s /q Chromium_old ren Chromium Chromium_old ren chrome-win32 Chromium echo. & echo Chromium has been updated successfully! & timeout /t 10 exit :done pause