Initial commit: BizTalk application catalog
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
@echo off
|
||||
setlocal EnableExtensions
|
||||
|
||||
set "APPDIR=%~dp0"
|
||||
set "EXE=%APPDIR%BizTalkApplicationCatalog.exe"
|
||||
|
||||
if not exist "%EXE%" (
|
||||
echo FEHLER: Anwendung fehlt: "%EXE%"
|
||||
exit /b 2
|
||||
)
|
||||
|
||||
if "%~1"=="" goto :usage
|
||||
set "ENVIRONMENT=%~1"
|
||||
|
||||
if "%~2"=="" (
|
||||
set "OUTPUT=%CD%\BizTalk-Anwendungsinventar\%ENVIRONMENT%"
|
||||
) else (
|
||||
set "OUTPUT=%~2"
|
||||
)
|
||||
|
||||
echo ============================================================
|
||||
echo BEW BizTalk Application Catalog
|
||||
echo Umgebung: %ENVIRONMENT%
|
||||
echo Server: %COMPUTERNAME%
|
||||
echo Ausgabe: %OUTPUT%
|
||||
echo Modus: ausschliesslich lesend
|
||||
echo ============================================================
|
||||
echo.
|
||||
|
||||
"%EXE%" --environment "%ENVIRONMENT%" --output "%OUTPUT%"
|
||||
set "EXITCODE=%ERRORLEVEL%"
|
||||
|
||||
echo.
|
||||
if "%EXITCODE%"=="0" (
|
||||
echo Inventar erfolgreich erstellt.
|
||||
) else if "%EXITCODE%"=="1" (
|
||||
echo Inventar mit Teilfehler erstellt. XLSX, Abdeckung, Findings und Log pruefen.
|
||||
) else (
|
||||
echo Inventar konnte nicht erstellt werden.
|
||||
)
|
||||
echo ExitCode: %EXITCODE%
|
||||
exit /b %EXITCODE%
|
||||
|
||||
:usage
|
||||
echo Aufruf:
|
||||
echo run-inventory.cmd UMGEBUNG [AUSGABEORDNER]
|
||||
echo.
|
||||
echo Beispiele:
|
||||
echo run-inventory.cmd ACC C:\BizTalk-Doku\ACC
|
||||
echo run-inventory.cmd PROD C:\BizTalk-Doku\PROD
|
||||
exit /b 2
|
||||
Reference in New Issue
Block a user