Projektdateien hinzufügen.

This commit is contained in:
mr_sc
2026-08-19 19:27:41 +02:00
parent 0889f1f6c7
commit 7fe54c0785
32 changed files with 2406 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
@echo off
REM Als Administrator ausfuehren, wenn Scheduler.WebPrefix = http://+:8095/ genutzt wird.
netsh http add urlacl url=http://+:8095/ user=Everyone
netsh advfirewall firewall add rule name="FileInterface HTTP Admin 8095" dir=in action=allow protocol=TCP localport=8095

View File

@@ -0,0 +1,22 @@
@echo off
setlocal
set SERVICE_NAME=FileinterfaceCronScheduler
set EXE=%~dp0..\FileinterfaceCronScheduler\bin\Release\FileinterfaceCronScheduler.exe
if not exist "%EXE%" (
echo EXE nicht gefunden: %EXE%
echo Bitte Solution zuerst im Release-Modus bauen.
exit /b 1
)
sc.exe query "%SERVICE_NAME%" >nul 2>&1
if %errorlevel%==0 (
echo Dienst %SERVICE_NAME% existiert bereits.
exit /b 1
)
sc.exe create "%SERVICE_NAME%" binPath= "\"%EXE%\" --service" start= auto DisplayName= "FileInterface Watcher + CronScheduler"
if errorlevel 1 exit /b 1
sc.exe description "%SERVICE_NAME%" "FileSystemWatcher und CronScheduler fuer iTAC IMS CustomFunctions mit HTTP-Administration"
sc.exe start "%SERVICE_NAME%"
endlocal

View File

@@ -0,0 +1,7 @@
@echo off
setlocal
set SERVICE_NAME=FileinterfaceCronScheduler
sc.exe stop "%SERVICE_NAME%"
timeout /t 2 /nobreak >nul
sc.exe delete "%SERVICE_NAME%"
endlocal