Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- ::ver
- echo.
- echo Startup fuer TQ "Immortal Throne" oder "Underlord"
- echo ==================================================
- echo.
- echo.
- set REG=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer
- FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "%REG%\Shell Folders" /v "Personal"') DO SET ED=%%B
- :: 32BIT
- set REG=HKLM\SOFTWARE\Iron Lore
- :: 64BIT
- if not "%ProgramW6432%"=="" set REG=HKLM\SOFTWARE\Wow6432Node\Iron Lore
- FOR /F "tokens=3* delims= " %%A IN ('REG QUERY "%REG%\Titan Quest Immortal Throne" /v "Install Location"') DO SET IT=%%B
- :LOOP
- echo Pfadangaben:
- echo.
- echo [ %ED% ]
- echo [ %IT% ]
- echo.
- echo.
- echo.
- echo [I]mmortal Throne oder [U]nderlord spielen?!
- echo.
- set choice=
- set /p choice=Bitte [I] oder [U] druecken ([#] fuer Abbruch) und ENTER:
- echo.
- if "%choice%" == "i" goto IT
- if "%choice%" == "I" goto IT
- if "%choice%" == "u" goto UL
- if "%choice%" == "U" goto UL
- if "%choice%" == "#" goto ABBRUCH
- cls
- echo.
- echo *** ERROR - Falsche Eingabe *** ([#] für Abbruch)
- goto :LOOP
- ::**********
- :IT
- echo %IT%\Database ...
- if exist "%IT%\Database_UL\." goto IT_1
- echo wird umbenannt ...
- move /Y "%IT%\Database\." "%IT%\Database_UL" >nul
- move /Y "%IT%\Database_IT\." "%IT%\Database" >nul
- echo ok!
- :IT_1
- echo %IT%\Resources ...
- if exist "%IT%\Resources_UL\." goto IT_1A
- echo wird umbenannt ...
- move /Y "%IT%\Resources\." "%IT%\Resources_UL" >nul
- move /Y "%IT%\Resources_IT\." "%IT%\Resources" >nul
- echo ok!
- :IT_1A
- echo %IT%\ Dateien ...
- if exist "%IT%\Engine_UL.dll" goto IT_2
- echo werden umbenannt ...
- move /Y "%IT%\Engine.dll" "%IT%\Engine_UL.dll" >nul
- move /Y "%IT%\Engine_IT.dll" "%IT%\Engine.dll" >nul
- if exist "%IT%\Game_UL.dll" goto IT_2
- move /Y "%IT%\Game.dll" "%IT%\Game_UL.dll" >nul
- move /Y "%IT%\Game_IT.dll" "%IT%\Game.dll" >nul
- echo ok!
- :IT_2
- echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main ...
- if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_UL\." goto IT_3
- echo wird umbenannt ...
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_UL" >nul
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_IT\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main" >nul
- echo ok!
- :IT_3
- echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\User ...
- if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_UL\." goto IT_4
- echo wird umbenannt ...
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_UL" >nul
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_IT\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User" >nul
- echo ok!
- :IT_4
- echo %ED%\My Games\Titan Quest - Immortal Throne\custommaps ...
- if exist "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_UL\." goto IT_5
- echo wird umbenannt ...
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_UL" >nul
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_IT\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps" >nul
- echo ok!
- :IT_5
- echo.
- echo "Titan Quest - Immortal Throne" ist Aktiv ...
- echo.
- echo IT >%0.tmp
- goto EOF
- ::**********
- :UL
- echo %IT%\Database ...
- if exist "%IT%\Database_IT\." goto UL_1
- echo wird umbenannt ...
- move /Y "%IT%\Database\." "%IT%\Database_IT" >nul
- move /Y "%IT%\Database_UL\." "%IT%\Database" >nul
- echo ok!
- :UL_1
- echo %IT%\Resources ...
- if exist "%IT%\Resources_IT\." goto UL_1A
- echo wird umbenannt ...
- move /Y "%IT%\Resources\." "%IT%\Resources_IT" >nul
- move /Y "%IT%\Resources_UL\." "%IT%\Resources" >nul
- echo ok!
- :UL_1A
- echo %IT%\ Dateien ...
- if exist "%IT%\Engine_IT.dll" goto UL_2
- echo werden umbenannt ...
- move /Y "%IT%\Engine.dll" "%IT%\Engine_IT.dll" >nul
- move /Y "%IT%\Engine_UL.dll" "%IT%\Engine.dll" >nul
- if exist "%IT%\Game_IT.dll" goto UL_2
- move /Y "%IT%\Game.dll" "%IT%\Game_IT.dll" >nul
- move /Y "%IT%\Game_UL.dll" "%IT%\Game.dll" >nul
- echo ok!
- :UL_2
- echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main ...
- if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_IT\." goto UL_3
- echo wird umbenannt ...
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_IT" >nul
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main_UL\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\Main" >nul
- echo ok!
- :UL_3
- echo %ED%\My Games\Titan Quest - Immortal Throne\SaveData\User ...
- if exist "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_IT\." goto UL_4
- echo wird umbenannt ...
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_IT" >nul
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User_UL\." "%ED%\My Games\Titan Quest - Immortal Throne\SaveData\User" >nul
- echo ok!
- :UL_4
- echo %ED%\My Games\Titan Quest - Immortal Throne\custommaps ...
- if exist "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_IT\." goto UL_5
- echo wird umbenannt ...
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_IT" >nul
- move /Y "%ED%\My Games\Titan Quest - Immortal Throne\custommaps_UL\." "%ED%\My Games\Titan Quest - Immortal Throne\custommaps" >nul
- echo ok!
- :UL_5
- echo.
- echo "Titan Quest - Underlord" ist Aktiv ...
- echo.
- echo UL >%0.tmp
- goto EOF
- ::**********
- :ABBRUCH
- echo.
- echo ABBRUCH ...
- echo.
- echo.
- goto END
- :EOF
- echo.
- echo Starte das Game ...
- echo.
- echo.
- echo.
- :END
- PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement