Advertisement
Guest User

SERVER SETUP

a guest
Jan 15th, 2015
741
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2.  
  3. ECHO --------------------------------------------------
  4. ECHO --------------------------------------------------
  5. ECHO --------------- 5 USER KODI SCRIPT ---------------
  6. ECHO --------------------------------------------------
  7. ECHO --------------------------------------------------
  8. ECHO --------------- SERVER SETUP 1.2.1 ---------------
  9. ECHO --------------------------------------------------
  10. ECHO --------------------------------------------------
  11. ECHO ----------------- BY N. KINGSTON -----------------
  12. ECHO --------------------------------------------------
  13. ECHO --------------------------------------------------
  14. ECHO ----------------EDITED BY Martin K.---------------
  15. ECHO --------------------------------------------------
  16. ECHO --------------------------------------------------
  17. ECHO.
  18. ECHO.
  19.  
  20. IF EXIST "%appdata%\KODI_Backup" (
  21.  
  22. ECHO MOVE OR DELETE: "%appdata%\KODI_Backup"
  23. ECHO.
  24. ECHO SCRIPT WILL NOW EXIT
  25. ECHO.
  26. PAUSE
  27. EXIT
  28.  
  29. )
  30.  
  31.  
  32. SET /P ipaddress=ENTER YOUR MYSQL SERVERS IP ADDRESS: %=%
  33.  
  34. ECHO.
  35.  
  36. SET /P username=ENTER YOUR MYSQL SERVERS USERNAME: %=%
  37.  
  38. ECHO.
  39.  
  40. SET /P password=ENTER YOUR MYSQL SERVERS PASSWORD: %=%
  41.  
  42.  
  43. IF EXIST "%appdata%\KODI" (
  44.  
  45. MOVE "%appdata%\KODI" "%appdata%\KODI_Backup"
  46.  
  47. )
  48.  
  49.  
  50. MKDIR "%appdata%\KODI"
  51. MKDIR "%appdata%\KODI\userdata"
  52.  
  53. ECHO ^<advancedsettings^> > "%appdata%\KODI\userdata\advancedsettings.xml"
  54.  
  55. ECHO ^<videodatabase^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  56. ECHO ^<type^>mysql^</type^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  57. ECHO ^<host^>%ipaddress%^</host^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  58. ECHO ^<port^>3306^</port^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  59. ECHO ^<user^>%username%^</user^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  60. ECHO ^<pass^>%password%^</pass^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  61. ECHO ^<name^>a^</name^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  62. ECHO ^</videodatabase^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  63.  
  64. ECHO ^<musicdatabase^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  65. ECHO ^<type^>mysql^</type^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  66. ECHO ^<host^>%ipaddress%^</host^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  67. ECHO ^<port^>3306^</port^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  68. ECHO ^<user^>%username%^</user^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  69. ECHO ^<pass^>%password%^</pass^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  70. ECHO ^<name^>a^</name^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  71. ECHO ^</musicdatabase^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  72.  
  73. ECHO ^</advancedsettings^> >> "%appdata%\KODI\userdata\advancedsettings.xml"
  74.  
  75. ECHO.
  76. ECHO.
  77. ECHO --------------------------------------------------
  78. ECHO --------------------------------------------------
  79. ECHO ------------- WHAT TO DO NEXT --------------------
  80. ECHO --------------------------------------------------
  81. ECHO --------------------------------------------------
  82. ECHO ------------- 1. RUN KODI ------------------------
  83. ECHO --------------------------------------------------
  84. ECHO --------------------------------------------------
  85. ECHO ------------- 2. WAIT 30 SECONDS -----------------
  86. ECHO --------------------------------------------------
  87. ECHO --------------------------------------------------
  88. ECHO ------------- 3. EXIT KODI -----------------------
  89. ECHO --------------------------------------------------
  90. ECHO --------------------------------------------------
  91. ECHO ------------- 4. EXECUTE MYSQL QUERY -------------
  92. ECHO --------------------------------------------------
  93. ECHO --------------------------------------------------
  94. ECHO ------------- 5. SETUP CLIENTS -------------------
  95. ECHO --------------------------------------------------
  96. ECHO --------------------------------------------------
  97. ECHO.
  98. ECHO.
  99.  
  100. PAUSE
Advertisement
RAW Paste Data Copied
Advertisement