Guest User

FOE / Start-Batch für TQIT/Undrlord

a guest
Mar 1st, 2011
143
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. cls
  3. ::ver
  4. echo.
  5. echo          Startup fuer TQ "Immortal Throne" oder "Underlord"
  6. echo          ==================================================
  7. echo.
  8. echo.
  9.  
  10. set REG=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer
  11. FOR /F "tokens=2* delims=    " %%A IN ('REG QUERY "%REG%\Shell Folders" /v "Personal"') DO SET ED=%%B
  12.  
  13. :: 32BIT
  14. set REG=HKLM\SOFTWARE\Iron Lore
  15. :: 64BIT
  16. if not "%ProgramW6432%"=="" set REG=HKLM\SOFTWARE\Wow6432Node\Iron Lore
  17. FOR /F "tokens=3* delims=    " %%A IN ('REG QUERY "%REG%\Titan Quest Immortal Throne" /v "Install Location"') DO SET IT=%%B
  18.  
  19. :LOOP
  20. echo Pfadangaben:
  21. echo.
  22. echo [ %ED% ]
  23. echo [ %IT% ]
  24. echo.
  25. echo.
  26. echo.
  27. echo [I]mmortal Throne oder [U]nderlord spielen?!
  28. echo.
  29.  
  30.  
  31. set choice=
  32. set /p choice=Bitte [I] oder [U] druecken ([#] fuer Abbruch) und ENTER:
  33. echo.
  34. if "%choice%" == "i" goto IT
  35. if "%choice%" == "I" goto IT
  36. if "%choice%" == "u" goto UL
  37. if "%choice%" == "U" goto UL
  38. if "%choice%" == "#" goto ABBRUCH
  39.  
  40. cls
  41. echo.
  42. echo *** ERROR - Falsche Eingabe *** ([#] für Abbruch)
  43. goto :LOOP
  44.  
  45. ::**********
  46.  
  47. :IT
  48. echo %IT%\Database ...
  49. if exist "%IT%\Database_UL\." goto IT_1
  50.  
  51. echo wird umbenannt ...
  52. move /Y "%IT%\Database\." "%IT%\Database_UL" >nul
  53. move /Y "%IT%\Database_IT\." "%IT%\Database" >nul
  54. echo ok!
  55.  
  56. :IT_1
  57. echo %IT%\Resources ...
  58. if exist "%IT%\Resources_UL\." goto IT_1A
  59.  
  60. echo wird umbenannt ...
  61. move /Y "%IT%\Resources\." "%IT%\Resources_UL" >nul
  62. move /Y "%IT%\Resources_IT\." "%IT%\Resources" >nul
  63. echo ok!
  64.  
  65. :IT_1A
  66. echo %IT%\ Dateien ...
  67. if exist "%IT%\Engine_UL.dll" goto IT_2
  68.  
  69. echo werden umbenannt ...
  70. move /Y "%IT%\Engine.dll" "%IT%\Engine_UL.dll" >nul
  71. move /Y "%IT%\Engine_IT.dll" "%IT%\Engine.dll" >nul
  72.  
  73. if exist "%IT%\Game_UL.dll" goto IT_2
  74.  
  75. move /Y "%IT%\Game.dll" "%IT%\Game_UL.dll" >nul
  76. move /Y "%IT%\Game_IT.dll" "%IT%\Game.dll" >nul
  77. echo ok!
  78.  
  79. :IT_2
  80. echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main ...
  81. if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_UL\." goto IT_3
  82.  
  83. echo wird umbenannt ...
  84. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_UL" >nul
  85. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_IT\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main" >nul
  86. echo ok!
  87.  
  88. :IT_3
  89. echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\User ...
  90. if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_UL\." goto IT_4
  91.  
  92. echo wird umbenannt ...
  93. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_UL" >nul
  94. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_IT\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User" >nul
  95. echo ok!
  96.  
  97. :IT_4
  98. echo %ED%\My Games\Titan Quest - Immortal Throne\custommaps ...
  99. if exist "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_UL\." goto IT_5
  100.  
  101. echo wird umbenannt ...
  102. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_UL" >nul
  103. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_IT\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps" >nul
  104. echo ok!
  105.  
  106. :IT_5
  107. echo.
  108. echo          "Titan Quest - Immortal Throne" ist Aktiv ...
  109. echo.
  110. echo IT >%0.tmp
  111. goto EOF
  112.  
  113. ::**********
  114.  
  115. :UL
  116. echo %IT%\Database ...
  117. if exist "%IT%\Database_IT\." goto UL_1
  118.  
  119. echo wird umbenannt ...
  120. move /Y "%IT%\Database\." "%IT%\Database_IT" >nul
  121. move /Y "%IT%\Database_UL\." "%IT%\Database" >nul
  122. echo ok!
  123.  
  124. :UL_1
  125. echo %IT%\Resources ...
  126. if exist "%IT%\Resources_IT\." goto UL_1A
  127.  
  128. echo wird umbenannt ...
  129. move /Y "%IT%\Resources\." "%IT%\Resources_IT" >nul
  130. move /Y "%IT%\Resources_UL\." "%IT%\Resources" >nul
  131. echo ok!
  132.  
  133. :UL_1A
  134. echo %IT%\ Dateien ...
  135. if exist "%IT%\Engine_IT.dll" goto UL_2
  136.  
  137. echo werden umbenannt ...
  138. move /Y "%IT%\Engine.dll" "%IT%\Engine_IT.dll" >nul
  139. move /Y "%IT%\Engine_UL.dll" "%IT%\Engine.dll" >nul
  140.  
  141. if exist "%IT%\Game_IT.dll" goto UL_2
  142.  
  143. move /Y "%IT%\Game.dll" "%IT%\Game_IT.dll" >nul
  144. move /Y "%IT%\Game_UL.dll" "%IT%\Game.dll" >nul
  145. echo ok!
  146.  
  147. :UL_2
  148. echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main ...
  149. if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_IT\." goto UL_3
  150.  
  151. echo wird umbenannt ...
  152. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_IT" >nul
  153. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_UL\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main" >nul
  154. echo ok!
  155.  
  156. :UL_3
  157. echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\User ...
  158. if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_IT\." goto UL_4
  159.  
  160. echo wird umbenannt ...
  161. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_IT" >nul
  162. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_UL\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User" >nul
  163. echo ok!
  164.  
  165. :UL_4
  166. echo %ED%\My Games\Titan Quest - Immortal Throne\custommaps ...
  167. if exist "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_IT\." goto UL_5
  168.  
  169. echo wird umbenannt ...
  170. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_IT" >nul
  171. move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_UL\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps" >nul
  172. echo ok!
  173.  
  174. :UL_5
  175. echo.
  176. echo          "Titan Quest - Underlord" ist Aktiv ...
  177. echo.
  178. echo UL >%0.tmp
  179. goto EOF
  180.  
  181. ::**********
  182.  
  183. :ABBRUCH
  184. echo.
  185. echo          ABBRUCH ...
  186. echo.
  187. echo.
  188. goto END
  189.  
  190. :EOF
  191. echo.
  192. echo          Starte das Game ...
  193. echo.
  194. echo.
  195. echo.
  196.  
  197. :END
  198. PAUSE
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×