copy ..\"Apteka+.exe.config" "Apteka+.exe.config.bk" /y
chcp 1250
fnr.exe --cl --dir ".." --fileMask "*.config" --find "¿" --replace "z"
fnr.exe --cl --dir ".." --fileMask "*.config" --alwaysUseEncoding "utf-8" --find "¿" --replace "z"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 8 11.12.2019 -->" --replace "<!-- Wersja 9 13.02.2020 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 7 05.11.2019 -->" --replace "<!-- Wersja 9 13.02.2020 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 6 28.06.2019 -->" --replace "<!-- Wersja 9 13.02.2020 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 5 30.05.2019 -->" --replace "<!-- Wersja 9 13.02.2020 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 4 20.03.219 -->" --replace "<!-- Wersja 9 13.02.2020 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 9 13.02.2020 -->" --replace "<!-- Wersja 10 28.07.2020 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 10 28.07.2020 -->" --replace "<!-- Wersja 11 01.04.2022 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 11 01.04.2022 -->" --replace "<!-- Wersja 12 26.06.2023 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 12 26.06.2023 -->" --replace "<!-- Wersja 13 26.07.2023 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Wersja 13 26.07.2023 -->" --replace "<!-- Wersja 14 19.10.2023 -->"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "ServiceV30" --replace "ServiceV40"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "ServiceV40" --replace "ServiceV50"

fnr.exe --cl --dir ".." --fileMask "*.config" --find "<httpsTransport maxReceivedMessageSize=""524288"" maxBufferSize=""524288""" --replace "<httpsTransport maxReceivedMessageSize=""5242880"" maxBufferSize=""5242880"""
fnr.exe --cl --dir ".." --fileMask "*.config" --find "behaviorConfiguration=""BehFals"" binding=""basicHttpBinding"" bindingConfiguration=""FalsBB""" --replace "behaviorConfiguration=""BehFals"" binding=""wsHttpBinding"" bindingConfiguration=""BindFals"""
fnr.exe --cl --dir ".." --fileMask "*.config" --find "//test-ezwm" --replace "//ezwm"

fnr.exe --cl --dir ".." --fileMask "*.config" --find "<binding name=""KsHTTPS"">" --replace "<binding name=""KsHTTPS""  maxReceivedMessageSize=""524288"" maxBufferSize=""524288"" sendTimeout=""00:10:00"">"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<httpsTransport />"  --replace "<httpsTransport maxReceivedMessageSize=""52428800"" maxBufferSize=""52428800"" />"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<binding name=""FalsBB""  maxBufferSize=""524288"" maxReceivedMessageSize=""524288"">"  --replace "<binding name=""FalsBB""  maxBufferSize=""5242880"" maxReceivedMessageSize=""5242880"">"

fnr.exe --cl --dir ".." --fileMask "*.config" --find "<binding name=""KsHTTPS""  maxReceivedMessageSize=""524288"" maxBufferSize=""524288"">" --replace "<binding name=""KsHTTPS""  maxReceivedMessageSize=""524288"" maxBufferSize=""524288"" sendTimeout=""00:10:00"">"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<binding name=""KsHTTPS""  maxReceivedMessageSize=""524288"" maxBufferSize=""524288"" sendTimeout=""00:10:00"">" --replace "<binding name=""KsHTTPS""  maxReceivedMessageSize=""1524288"" maxBufferSize=""1524288"" sendTimeout=""00:10:00"">"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<binding name=""BindFals"">" --replace "<binding name=""BindFals""  maxReceivedMessageSize=""52428800"" >"

fnr.exe --cl --dir ".." --fileMask "*.config" --find "<binding name=""FalsBB"">" --replace "<binding name=""FalsBB""  maxBufferSize=""5242880"" maxReceivedMessageSize=""5242880"">"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<httpsTransport  maxReceivedMessageSize=""524288"" maxBufferSize=""524288""/>"  --replace "<httpsTransport maxReceivedMessageSize=""52428800"" maxBufferSize=""52428800"" />"

fnr.exe --cl --dir ".." --fileMask "*.config" --find "<certificate encodedValue=""sha256WithRSAEncryption"" />\n				</identity>\n			</endpoint>\n		</client>" --replace "<certificate encodedValue=""sha256WithRSAEncryption"" />\n				</identity>\n			</endpoint>\n			<endpoint address=""https://zsmopl.ezdrowie.gov.pl/cxf/stanydmz""  behaviorConfiguration=""BehSMOPL"" \n			binding=""customBinding"" bindingConfiguration=""BindSMOPL""  contract=""SMOPLStan.StanyDMZ"" name=""StanyMagazynoweDMZ"">\n				<identity>\n					<dns value=""Apteka-uwierzytelnianie danych""/>\n					<certificate encodedValue=""sha256WithRSAEncryption""/>\n				</identity>\n			</endpoint>\n		</client>"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "<certificate encodedValue=""sha256WithRSAEncryption"" />\n        </identity>\n      </endpoint>\n    </client>" --replace "<certificate encodedValue=""sha256WithRSAEncryption"" />\n				</identity>\n			</endpoint>\n			<endpoint address=""https://zsmopl.ezdrowie.gov.pl/cxf/stanydmz""  behaviorConfiguration=""BehSMOPL"" \n			binding=""customBinding"" bindingConfiguration=""BindSMOPL""  contract=""SMOPLStan.StanyDMZ"" name=""StanyMagazynoweDMZ"">\n				<identity>\n					<dns value=""Apteka-uwierzytelnianie danych""/>\n					<certificate encodedValue=""sha256WithRSAEncryption""/>\n				</identity>\n			</endpoint>\n		</client>"
fnr.exe --cl --dir ".." --fileMask "*.config" --find "      <!-- od tego miejsca w dol skopiuj i podmien zawartosc w poprzedniej wersji 3 29.01.2019 -->\n     " --replace ""
fnr.exe --cl --dir ".." --fileMask "*.config" --find "	    \n\n      <endpoint address=""https://ezwm.nfz.gov.pl/ws-broker-server-ezlec/services/Auth""" --replace "\n			<endpoint address=""https://ezwm.nfz.gov.pl/ws-broker-server-ezlec/services/Auth"""
fnr.exe --cl --dir ".." --fileMask "*.config" --find "</configuration>\n\n" --replace "</configuration>\n"

fnr.exe --cl --dir ".." --fileMask "*.config" --find "<!-- Na etapie pilotazu zamiast -prod-pl   ma byc -int-pl -->" --replace "<!-- Transgraniczne -->\n			<endpoint address=""https://sus.ezdrowie.gov.pl/services/ObslugaEPbReceptyWS.ObslugaEPbReceptyWSHttpSoap11Endpoint""\n        behaviorConfiguration=""BehEREC"" binding=""customBinding"" bindingConfiguration=""ObslugaReceptyWSSoap11Binding"" \n        contract=""RecTG.ObslugaEPbReceptyWS"" name=""ObslugaEPbReceptyWSHttpSoap11Endpoint"">\n				<identity>\n					<dns value=""Apteka-uwierzytelnianie danych""/>\n				</identity>\n			</endpoint>\n			<!-- Serializacja -->"