2025-03-19 10:41:52 +01:00
|
|
|
|
..\svcutil.exe /noConfig /noLogo /edb /n:*,BeWo.ServiceProxy /out:..\ServiceProxy\GeneratedOperationsEnhancedService.cs /ct:System.Collections.Generic.List`1 /r:..\..\Shared\bin\Debug\BS.Shared.dll http://localhost:3777/Host/OperationsEnhancedService.svc?wsdl
|
2025-04-14 13:04:03 +02:00
|
|
|
|
|
|
|
|
|
|
@echo off
|
|
|
|
|
|
setlocal EnableDelayedExpansion
|
|
|
|
|
|
|
|
|
|
|
|
set "input=..\ServiceProxy\GeneratedOperationsEnhancedService.cs"
|
|
|
|
|
|
set "output=temp.txt"
|
|
|
|
|
|
set /a start=12
|
|
|
|
|
|
set /a end=162
|
|
|
|
|
|
set /a line=0
|
|
|
|
|
|
|
|
|
|
|
|
REM Zeilen zählen
|
|
|
|
|
|
set /a total=0
|
|
|
|
|
|
for /f "usebackq delims=" %%A in ("%input%") do (
|
|
|
|
|
|
set /a total+=1
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
REM Nur löschen, wenn genug Zeilen vorhanden
|
|
|
|
|
|
if %total% leq %end% (
|
|
|
|
|
|
echo Datei hat nur %total% Zeilen – nichts wird gelöscht.
|
|
|
|
|
|
copy /y "%input%" "%input2%"
|
|
|
|
|
|
goto :eof
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
> "%output%" (
|
|
|
|
|
|
for /f "usebackq delims=" %%A in ("%input%") do (
|
|
|
|
|
|
set /a line+=1
|
|
|
|
|
|
if !line! lss %start% echo(%%A
|
|
|
|
|
|
if !line! gtr %end% echo(%%A
|
|
|
|
|
|
)
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
move /y "%output%" "%input%"
|