@ECHO OFF SET HOST= SET GENERATECONFIG= ECHO. ECHO ******************************************************************************************* SET /P HOST=Which host should be used? [services.heuristiclab.com]: IF "%HOST%"=="" SET HOST=services.heuristiclab.com SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]: IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y SET ARGS=http://%HOST%/OKB-3.3/QueryService.svc ^ /out:QueryServiceClient ^ /namespace:*,HeuristicLab.Clients.OKB.Query ^ /collectionType:System.Collections.Generic.List`1 ^ /targetClientVersion:Version35 ^ /enableDataBinding ^ /syncOnly IF "%GENERATECONFIG%"=="y" ( SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig ) ELSE ( SET ARGS=%ARGS% /noConfig ) ECHO. ECHO Generating QueryService client ECHO. SETLOCAL ENABLEDELAYEDEXPANSION svcutil.exe %ARGS% ENDLOCAL ECHO. ECHO Generation of QueryService client finished. ECHO ******************************************************************************************* ECHO. PAUSE