$xl = new-object -comobject Excel.Application

$source_wb = $xl.workbooks.open($source)
$xl.visible=$false
$type=$xl.GetType()
$ret=$type.InvokeMember("Run",[Reflection.BindingFlags]::InvokeMethod,$null,$xl,$param)
Write-Host $ret
$xl.Quit()

$currentThread.CurrentCulture = $oldci
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($xl)
Remove-Variable xl

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-10-08
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案