The below assumes you are running the batch file from the folder with downloaded files, that you've installed 7z to extract zipped archives, and your GN4 folders are as shown below. You also need Editorial_UpdateConfig.xml_UpdateConfig.xml file.
@echo off
echo stopping GN4 file service...
net stop "tera file4"
net stop "tera back4"
"c:\program files\7-zip\7z" x -y -oc:\tera\gn4\bin gn4bin_64.zip
if %errorlevel% == 1 goto EXIT
"c:\program files\7-zip\7z" x -y -oc:\tera\gn4\COM COM_64.zip
if %errorlevel% == 1 goto EXIT
"c:\program files\7-zip\7z" x -y -oc:\tera\gn4\web gnportal_64.zip
if %errorlevel% == 1 goto EXIT
"c:\program files\7-zip\7z" x -y -oc:\tera\gn4\config gn4config.zip
if %errorlevel% == 1 goto EXIT
iisreset /start
rem updating local database...
c:\tera\gn4\bin\srv4 dbupdate -config c:\tera\gn4\config\Editorial_UpdateConfig.xml_UpdateConfig.xml -yes
regsvr32 /s dsofile_x64.dll
regsvr32 /s PdfLib_x64.dll
regsvr32 /s XmpFileHandler_x64.dll
net start "Tera Back4"
net start "Tera File4"
goto END
:exit
echo Something's wrong with unzipping, please check all files...
:end
pause
|