Advertisement
skuly

ESOTTCLauncher

Jun 7th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | Gaming | 0 0
  1. @echo off && SetLocal DisableDelayedExpansion
  2. title Skuly-ESO+TTC Launcher
  3. mode con: cols=52 lines=11
  4. for /f usebackq %%a in (
  5. `powershell -command "[Environment]::GetFolderPath('Personal')"`
  6. ) do (set "docs_folder=%%a")
  7.  
  8. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-ItemProperty "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Zenimax_Online\Launcher" -Name "InstallPath")."InstallPath")}"') Do Set "ESOPATH=%%G"
  9.  
  10. set PriceTable="%docs_folder%\Elder Scrolls Online\live\AddOns\TamrielTradeCentre"
  11.  
  12. GOTO MENU
  13.  
  14.  
  15. :MENU
  16. cls
  17. COLOR 0A
  18. ECHO 1 - Start ESO Launcher and Update PriceTable NA
  19. ECHO 2 - Start ESO Launcher and Update PriceTable EU
  20. ECHO 3 - Start TTC
  21. ECHO 4 - EXIT
  22.  
  23. ECHO.
  24.  
  25. SET /P M=Type menu number then press ENTER:
  26. IF %M%==1 GOTO STARTLAUNCHERNA
  27. IF %M%==2 GOTO STARTLAUNCHEREU
  28. IF %M%==3 GOTO STARTCLIENT
  29. IF %M%==4 GOTO :EOF
  30.  
  31.  
  32. :CLIENTALREADYSTARTED
  33. echo TCC Client Already Started.
  34. timeout 1 >nul
  35. GOTO MENU
  36.  
  37. :LAUNCHERALREADYSTARTEDNA
  38. echo ESO Launcher Already Started.
  39. timeout 1 >nul
  40. GOTO PRICENA
  41. cls
  42. GOTO MENU
  43.  
  44. :LAUNCHERALREADYSTARTEDEU
  45. echo ESO Launcher Already Started.
  46. timeout 1 >nul
  47. GOTO PRICEEU
  48. cls
  49. GOTO MENU
  50.  
  51. :STARTCLIENT
  52. cls
  53. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-Process client).Path)}"') Do Set "readclienttaskpath=%%G"
  54.  
  55. SET SearchString=Elder Scrolls Online
  56. SetLocal EnableDelayedExpansion
  57. If /I Not "%readclienttaskpath%"=="!readclienttaskpath:%SearchString%=!" (GOTO CLIENTALREADYSTARTED) Else GOTO STARTCLIENTMAIN
  58. EndLocal
  59. cls
  60.  
  61. :STARTCLIENTMAIN
  62. cls
  63. set clientpath="%docs_folder%\Elder Scrolls Online\live\AddOns\TamrielTradeCentre\Client\Client.exe"
  64. start "" %clientpath%
  65. timeout 1 >nul
  66. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-Process client).Path)}"') Do Set "readclienttaskpath=%%G"
  67.  
  68. SET SearchString=Elder Scrolls Online
  69. SetLocal EnableDelayedExpansion
  70. If /I Not "%readclienttaskpath%"=="!readclienttaskpath:%SearchString%=!" (echo TTC Client is now Started. && timeout 1 >nul && GOTO MENU) Else GOTO STARTCLIENTFAILED
  71. EndLocal
  72.  
  73. :: NA
  74.  
  75. :STARTLAUNCHERNA
  76. cls
  77. timeout 1 >nul
  78. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-Process Bethesda.net_Launcher).Path)}"') Do Set "launchertaskpath=%%G"
  79.  
  80. SET SearchString=%ESOPATH%
  81. SetLocal EnableDelayedExpansion
  82. If /I Not "%launchertaskpath%"=="!launchertaskpath:%SearchString%=!" (GOTO LAUNCHERALREADYSTARTEDNA) Else GOTO STARTLAUNCHERMAINNA
  83. EndLocal
  84.  
  85.  
  86. :STARTLAUNCHERMAINNA
  87. set launcherpath="%ESOPATH%\Launcher\Bethesda.net_Launcher.exe"
  88. start "" %launcherpath%
  89. cls
  90. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-Process Bethesda.net_Launcher).Path)}"') Do Set "launchertaskpath=%%G"
  91. timeout 1 >nul
  92. SET SearchString=%ESOPATH%
  93. SetLocal EnableDelayedExpansion
  94. If /I Not "%launchertaskpath%"=="!launchertaskpath:%SearchString%=!" (echo ESO Launcher is now Started. && timeout 2 >nul && GOTO PRICENA) Else GOTO STARTLAUNCHERFAILEDNA
  95. EndLocal
  96.  
  97. :: NA END
  98.  
  99. :: EU
  100.  
  101. :STARTLAUNCHEREU
  102. cls
  103. timeout 1 >nul
  104. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-Process Bethesda.net_Launcher).Path)}"') Do Set "launchertaskpath=%%G"
  105.  
  106. SET SearchString=%ESOPATH%
  107. SetLocal EnableDelayedExpansion
  108. If /I Not "%launchertaskpath%"=="!launchertaskpath:%SearchString%=!" (GOTO LAUNCHERALREADYSTARTEDEU) Else GOTO STARTLAUNCHERMAINEU
  109. EndLocal
  110.  
  111.  
  112. :STARTLAUNCHERMAINEU
  113. set launcherpath="%ESOPATH%\Launcher\Bethesda.net_Launcher.exe"
  114. start "" %launcherpath%
  115. cls
  116. For /F "delims=" %%G In ('PowerShell -Command "&{((Get-Process Bethesda.net_Launcher).Path)}"') Do Set "launchertaskpath=%%G"
  117. timeout 1 >nul
  118. SET SearchString=%ESOPATH%
  119. SetLocal EnableDelayedExpansion
  120. If /I Not "%launchertaskpath%"=="!launchertaskpath:%SearchString%=!" (echo ESO Launcher is now Started. && timeout 1 >nul && GOTO PRICEEU) Else GOTO STARTLAUNCHERFAILEDEU
  121. EndLocal
  122.  
  123. :: EU END
  124.  
  125. :STARTLAUNCHERFAILEDNA
  126. echo Failed to Start ESO Launcher.
  127. timeout 1 >nul
  128. GOTO PRICENA
  129.  
  130. :STARTLAUNCHERFAILEDEU
  131. echo Failed to Start ESO Launcher.
  132. timeout 1 >nul
  133. GOTO PRICEEU
  134.  
  135.  
  136.  
  137. :STARTCLIENTFAILED
  138. echo Failed to Start TTC Client. Is your Client.exe located in the Documents\Elder Scrolls Online\live\AddOns\TamrielTradeCentre\Client\ Folder?
  139. timeout 1 >nul
  140. GOTO MENU
  141.  
  142. :PRICENA
  143. cls
  144. IF EXIST %PriceTable%\PriceTableEU.lua DEL %PriceTable%\PriceTableEU.lua
  145. curl -s -o "PriceTable.zip " https://us.tamrieltradecentre.com/download/PriceTable
  146. tar -xf PriceTable.zip -C %PriceTable% && echo PriceTableNA Updated
  147. del PriceTable.zip
  148. timeout 1 >nul
  149. GOTO MENU
  150.  
  151. :PRICEEU
  152. cls
  153. IF EXIST %PriceTable%\PriceTableNA.lua DEL %PriceTable%\PriceTableNA.lua
  154. curl -s -o "PriceTable.zip " https://eu.tamrieltradecentre.com/download/PriceTable
  155. tar -xf PriceTable.zip -C %PriceTable% && echo PriceTableEU Updated
  156. del PriceTable.zip
  157. timeout 1 >nul
  158. GOTO MENU
  159. :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement