diff --git a/src/SmiServices/Microservices/DicomAnonymiser/Anonymisers/SmiCtpAnonymiser.cs b/src/SmiServices/Microservices/DicomAnonymiser/Anonymisers/SmiCtpAnonymiser.cs index 7214c75c8..2e1eefa0f 100644 --- a/src/SmiServices/Microservices/DicomAnonymiser/Anonymisers/SmiCtpAnonymiser.cs +++ b/src/SmiServices/Microservices/DicomAnonymiser/Anonymisers/SmiCtpAnonymiser.cs @@ -34,7 +34,7 @@ public SmiCtpAnonymiser(GlobalOptions globalOptions) srAnonTool = dicomAnonymiserOptions.SRAnonymiserToolPath; } - var ctpArgs = $"-jar {dicomAnonymiserOptions.CtpAnonCliJar} --anon-script {dicomAnonymiserOptions.CtpAllowlistScript} --sr-anon-tool {srAnonTool} --daemonize"; + var ctpArgs = $"-jar {dicomAnonymiserOptions.CtpAnonCliJar.Replace("/", "\\")} --anon-script {dicomAnonymiserOptions.CtpAllowlistScript.Replace("/", "\\")} --sr-anon-tool {srAnonTool.Replace("/", "\\")} --daemonize"; _logger.Info($"Starting ctp with: java {ctpArgs}"); _ctpProcess = ProcessWrapper.CreateProcess("java", ctpArgs); _ctpProcess.Start();