Created
October 15, 2014 13:24
-
-
Save renekreijveld/d02ef3dca66cfbb38a14 to your computer and use it in GitHub Desktop.
Gather info about a Joomla 2.5+ installation for Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM Sitenaam ophalen | |
FOR /F "tokens=4" %%G IN ('FINDSTR /C:"$sitename =" configuration.php') DO ( | |
FOR /F "tokens=1 delims='" %%A IN ('echo %%G') DO ( | |
SET jsitename=%%A | |
) | |
) | |
REM Host ophalen | |
FOR /F "tokens=4" %%G IN ('FINDSTR /C:"$host =" configuration.php') DO ( | |
FOR /F "tokens=1 delims='" %%A IN ('echo %%G') DO ( | |
SET jhost=%%A | |
) | |
) | |
REM DB User ophalen | |
FOR /F "tokens=4" %%G IN ('FINDSTR /C:"$user =" configuration.php') DO ( | |
FOR /F "tokens=1 delims='" %%A IN ('echo %%G') DO ( | |
SET juser=%%A | |
) | |
) | |
REM DB Password ophalen | |
FOR /F "tokens=4" %%G IN ('FINDSTR /C:"$password =" configuration.php') DO ( | |
FOR /F "tokens=1 delims='" %%A IN ('echo %%G') DO ( | |
SET jpassword=%%A | |
) | |
) | |
REM DB ophalen | |
FOR /F "tokens=4" %%G IN ('FINDSTR /C:"$db =" configuration.php') DO ( | |
FOR /F "tokens=1 delims='" %%A IN ('echo %%G') DO ( | |
SET jdb=%%A | |
) | |
) | |
REM DB prefix ophalen | |
FOR /F "tokens=4" %%G IN ('FINDSTR /C:"$dbprefix =" configuration.php') DO ( | |
FOR /F "tokens=1 delims='" %%A IN ('echo %%G') DO ( | |
SET jprefix=%%A | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment