ImportExcel icon indicating copy to clipboard operation
ImportExcel copied to clipboard

KillExcel fails

Open scriptingstudio opened this issue 2 years ago • 0 comments

In some circumstances (did not dig) Stop-Process waits for confirmation. Work around: use -Force -Confirm:false in Open-ExcelPackage function, line 17.

In this context the expression in the line 18 while (Get-Process -Name "excel" -ErrorAction Ignore) {} can cause an infinite loop. I would introduce a timeout.

scriptingstudio avatar Feb 01 '24 05:02 scriptingstudio