Re: Powershell mit OH starten?
Verfasst: 25. Feb 2023 11:54
Tatsächlich hab ich schon überlegt, ob ich mal eine Windows VM aufsetze, um das auszuprobieren, ich bin aber noch nicht dazu gekommen 

Code: Alles auswählen
configuration:
type: application/vnd.openhab.dsl.rule
script: var Response =
executeCommandLine(Duration.ofSeconds(5),"C:\\openhab\\conf\\scripts\\Test.bat")
type: script.ScriptAction
Code: Alles auswählen
dir > d:\output.txt
Code: Alles auswählen
powershell -command "D:\test.ps1"
pause