Maybe it’s simple but… how can I run a powershell script from Clarion?
RUN(‘test.ps1’) - doesn’t work
RUN(‘test.ps1’,0,0) - doesn’t work
RUN(LONGPATH()&’\test.ps1’) - doesn’t work
RUN(‘powershell.exe ‘&LONGPATH()&’\test.ps1’) - doesn’t work
I do like Mike’s ActiveScripting stuff very much, but you might also try Capesoft Oddjob (if you have it) to run your script if you really just want to run a .ps1 and capture output, etc.
I have OddJob but for this what I need it’s not good… it’s the same like NT ping class. From docs (Note this is a blocking, syncronous call.) so it will block the entire app until you got the response and I don’t think anyone wants that to happen.
The only workaround is with external tools like Powershell.