peux tu optimiser ce script
@echo off
echo.
echo ==========================================================================
echo GenerateService.bat
echo Runs generation scripts for the SaphirService Project
echo With Shared Entities...
echo SEFI compatible
echo ==========================================================================
echo.

@rem User specific settings
set saphirPath=E:\Source\Repos\Saphir\Saphir\
set saphirServicePath=E:\Source\Repos\Saphir\SaphirService\
set servicePath=%saphirPath%\ServiceClient\Service.cs

@rem The temporary service file name must have the extension ".cs", otherwise svcutil will append it anyway, and the move command performed later on will fail.
set tmpServicePath=%servicePath%.tmp.cs
set backupServicePath=%servicePath%.old
set bolPath=%saphirServicePath%\BOL\bin\Debug\
set port=6800
set vsDir="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE"
set svcUtilDir="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools"
@set PATH=%PATH%;%vsDir%;%svcUtilDir%

@rem Some var for time in batch
set try=0
set stH=%TIME:~0,2%
set stM=%TIME:~3,2%
set stS=%TIME:~6,2%
set stC=%TIME:~9,2%
echo StartTime: %stH%:%stM%:%stS%:%stC%
 
:run
set /A try=%try%+1
@echo Generate try: %try%
svcutil /t:code http://localhost:%port%/service /out:%tmpServicePath% /nologo /noConfig /ct:System.Collections.Generic.List`1 /r:%bolPath%Shared.dll /r:%bolPath%SefiSecurity.dll /r:%saphirServicePath%\Entities\bin\Debug\Entities.dll /r:%saphirServicePath%ServiceException\bin\Debug\ServiceException.dll /r:%saphirServicePath%packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll /r:%saphirServicePath%Rubis/bin/Debug/Rubis.dll
@echo Return code : %errorLevel%
@if errorlevel 1 goto :error
@rem Exit label
:exit
del %backupServicePath%
move %servicePath% %backupServicePath%
move %tmpServicePath% %servicePath%
echo.
echo ==========================================================================
@echo DONE !
echo ==========================================================================
echo.
echo StartTime: %stH%:%stM%:%stS%:%stC%
set etH=%TIME:~0,2%
set etM=%TIME:~3,2%
set etS=%TIME:~6,2%
set etC=%TIME:~9,2%
echo EndTime: %etH%:%etM%:%etS%:%etC%
 
set /A STARTTIME=(1%stH%-100)\*360000 + (1%stM%-100)\*6000 + (1%stS%-100)\*100 + (1%stC%-100)
set /A ENDTIME=(1%etH%-100)\*360000 + (1%etM%-100)\*6000 + (1%etS%-100)\*100 + (1%etC%-100)
set /A DURATION=%ENDTIME%-%STARTTIME%
 
set /A DURATIONH=%DURATION% / 360000
set /A DURATIONM=(%DURATION% - (%DURATIONH%\*360000)) / 6000
set /A DURATIONS=(%DURATION% - (%DURATIONH%\*360000) - (%DURATIONM%\*6000)) / 100
set /A DURATIONHS=(%DURATION% - (%DURATIONH%\*360000) - (%DURATIONM%\*6000) - (%DURATIONS%\*100))
 
if %DURATIONH% LSS 10 set DURATIONH=0%DURATIONH%
if %DURATIONM% LSS 10 set DURATIONM=0%DURATIONM%
if %DURATIONS% LSS 10 set DURATIONS=0%DURATIONS%
if %DURATIONHS% LSS 10 set DURATIONHS=0%DURATIONHS%
 
@echo Service generate in %try% try and %DURATIONM%:%DURATIONS%,%DURATIONHS%
@echo Service generate in %try% try and %DURATIONM%:%DURATIONS%,%DURATIONHS% >> stat.txt
echo.
pause
@exit
echo on

@rem Handle errors
:error
echo.
echo ==========================================================================
@echo An error occured in GenerateService.bat : %errorLevel%
@echo Retrying
echo ==========================================================================
echo.
@goto :run
 
 
echo off
이 스크립트를 최적화하는 방법에코 끄기echo.echo ==========================================================================echo GenerateService.batecho 사파이어서비스 프로젝트에 대한 생성 스크립트를 실행합니다.echo 공유 엔티티와 함께...echo SEFI 호환echo ==========================================================================echo.렘 사용자별 설정set saphirPath=E:\Source\Repos\Saphir\Saphir\set saphirServicePath=E:\Source\Repos\Saphir\SaphirService\set servicePath=%saphirPath%\ServiceClient\Service.cs임시 서비스 파일 이름은 확장자가 ".cs"여야 하며, 그렇지 않으면 svcutil이 이를 추가하여 나중에 수행되는 이동 명령이 실패합니다.set tmp서비스경로=%servicePath%.tmp.csset backup서비스경로=%servicePath%.oldset bolPath=%saphirServicePath%\BOL\bin\Debug\set port=6800set vsDir="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE"set svcUtilDir="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools"@set PATH=%PATH%;%vsDir%;%svcUtilDir%일괄 처리 시간에 대한 @rem 일부 변수set try=0set stH=%TIME:~0,2%set stM=%TIME:~3,2%set stS=%TIME:~6,2%set stC=%TIME:~9,2%echo StartTime: %stH%:%stM%:%stS%:%stC% runset /A try=%try%+1에코 시도 생성: try%svcutil /t:code http://localhost:%port%/service /out:%tmpServicePath% /nologo /noConfig /ct:System.Collections.Generic.List`1 /r:%bolPath%Shared.dll /r:%bolPath%SefiSecurity. .dll /r:%saphirServicePath%\Entities\bin\Debug\Entities.dll /r:%saphirServicePath%ServiceException\bin\Debug\ServiceException.dll /r:%saphirServicePath%packages\EntityFramework.6 .4.4\lib\net45\EntityFramework.dll /r:%saphirServicePath%Rubis/bin/Debug/Rubis.dll에코 반환 코드: %errorLevel%오류레벨 1이면 :오류로 이동렘 종료 레이블:exitdel %backup서비스경로%서비스 경로 %서비스 경로 %백업 서비스 경로 %를 이동합니다.tmp서비스경로% %서비스경로% 이동echo.echo ==========================================================================@echo DONE!echo ==========================================================================echo.echo StartTime: %stH%:%stM%:%stS%:%stC%set etH=%TIME:~0,2%set etM=%TIME:~3,2%set etS=%TIME:~6,2%set etC=%TIME:~9,2%echo EndTime: %etH%:%etM%:%etS%:%etC% set /A STARTTIME=(1%stH%-100)\*360000 + (1%stM%-100)\*6000 + (1%stS%-100)\*100 + (1%stC%-100)set /A ENDTIME=(1%etH%-100)\*360000 + (1%etM%-100)\*6000 + (1%etS%-100)\*100 + (1%etC%-100)set /A DURATION=%ENDTIME%-%STARTTIME% set /A DURATIONH=%DURATION% / 360000set /A DURATIONM=(%DURATION% - (%DURATIONH%\*360000)) / 6000set /A DURATIONS=(%DURATION% - (%DURATIONH%\*360000) - (%DURATIONM%\*6000)) / 100set /A DURATIONHS=(%DURATION% - (%DURATIONH%\*360000) - (%DURATIONM%\*6000) - (%DURATIONS%\*100)) if %DURATIONH% LSS 10 set DURATIONH=0%DURATIONH%if %DURATIONM% LSS 10 set DURATIONM=0%DURATIONM%if %DURATIONS% LSS 10 set DURATIONS=0%DURATIONS%if %DURATIONHS% LSS 10 set DURATIONHS=0%DURATIONHS% 시도% 시도에서 서비스 생성 및 %DURATIONM%:%DURATIONS%,%DURATIONHS%에서 서비스 생성시도 %시도%에서 서비스 생성 및 %DURATIONM%:%DURATIONS%,%DURATIONHS% >> stat.txtecho.pauseexitecho on렘 오류 처리:errorecho.echo ==========================================================================오류 발생 : %errorLevel%.다시 시도 중echo ==========================================================================echo.@goto :실행  echo off