OH3 Windows 10 executeCommandLine can't run batch files

what does that exaclty mean ? Did you also put the batch file into a path that is known to the system like where the ipconfig command is located in ?
You may need to escape \ in paths like

c:\ => c:\\

Do you use arguments for your batch file ? How does your executeCommandLine look like ?
Is there any error mesage in openhab.log file ?
Does it help to start the batch file in a separate ‘shell’ ?
executeCommandLine( "cmd","/c","c:\\path\\to\\your\batchfile")
you may need to add time to wait for the command to finish

MyReturnValue=executeCommandLine( Duration.ofSeconds(timeout),"cmd","/c","c:\\path\\to\\your\\batchfile")
1 Like