Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- SET /a error=0
- SET /a nofile=1
- echo ####################################################
- echo #============== Trinity Auto Updater ==============#
- echo ####################################################
- echo.
- echo Melyik adatbazisba szeretnel frissiteseket inportalni?
- echo Lehetosegek: world, characters, realmd
- :dbnev
- echo.
- SET /p type=DB nev:
- if %type%==world SET db=*world*.sql
- if %type%==characters SET db=*characters*.sql
- if %type%==realmd SET db=*realmd*.sql
- for %%a in (%db%) do (
- SET /a nofile=0
- echo %%a -- INPORTALASA FOLYAMATBAN!
- mysql --user=felhasznaloneved --password=jelszavad "%type%" < %%a
- if errorlevel 1 (
- echo.
- echo %%a -- SIKERTELEN!
- echo.
- SET /a error=error+1
- )else (
- echo %%a -- SIKERES!
- echo.
- )
- )
- echo.
- echo.
- if %nofile%==1 (
- echo Nincs inportalhato sql file
- goto dbnev
- )
- if %error% == 0 (
- echo Az osszes muvelet sikeresen vegrehajtva
- echo.
- )else (
- echo Nem sikerult minden muveletet vegrehajtani.
- echo HIBAK SZAMA: %error%
- echo.
- )
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement