Initial commit: BizTalk SAP environment inventory

This commit is contained in:
2026-07-27 14:21:50 +02:00
commit 439427cc17
26 changed files with 5281 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
@echo off
setlocal EnableExtensions
set "APPDIR=%~dp0"
set "EXE=%APPDIR%BizTalkSapEnvironmentInventory.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-SAP-Dokumentation\%ENVIRONMENT%"
) else (
set "OUTPUT=%~2"
)
echo ============================================================
echo BEW BizTalk SAP Environment Inventory
echo Umgebung: %ENVIRONMENT%
echo Server: %COMPUTERNAME%
echo Ausgabe: %OUTPUT%
echo Modus: read-only
echo ============================================================
echo.
"%EXE%" --environment "%ENVIRONMENT%" --output "%OUTPUT%"
set "EXITCODE=%ERRORLEVEL%"
echo.
if "%EXITCODE%"=="0" (
echo Erfassung vollstaendig abgeschlossen.
) else if "%EXITCODE%"=="1" (
echo Erfassung mit Teilfehlern abgeschlossen. DOCX und Log pruefen.
) else (
echo Erfassung konnte nicht abgeschlossen 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