33 lines
911 B
Batchfile
33 lines
911 B
Batchfile
..\svcutil.exe /noConfig /noLogo /edb /n:*,BeWo.ServiceProxy /out:..\ServiceProxy\GeneratedAccountingEnhancedService.cs /ct:System.Collections.Generic.List`1 /r:..\..\Shared\bin\Debug\BS.Shared.dll http://localhost:3777/Host/AccountingEnhancedService.svc?wsdl
|
||
|
||
@echo off
|
||
setlocal EnableDelayedExpansion
|
||
|
||
set "input=..\ServiceProxy\GeneratedAccountingEnhancedService.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%" |