Closed JUGI4U closed 5 years ago
Hello Juergen,
Thanks for reporting it. I will check & fix it when possible.
Best regards
Both bugs are fixed in the new version: https://github.com/profesorfalken/jPowerShell/releases/tag/v3.1.1
So I close this issue.
Thank you!
Hi,
first of all, thanks for this library! It greatly facilitates access to PowerShell.
There seems to be an issue when executeCommand is called after executeScript during the same session. In executeScript an internal flag 'scriptMode' is set to true but never reset to false on method exit. So following plain calls to executeCommand use PowerShellCommandProcessor as if it runs in scriptMode. These calls usually fail.
Another point is, that in executeScript(String scriptPath, String params), a BufferedReader is opened but seems to be never closed.
Could you please check both issues. Thanks
Juergen