$kix = New-Object -ComObject KiXtart.Application
But the $kix object returns nothing but a crap-filled $error object.
I was happy to see that I can still invoke the ScriptControl object and martial a Jscript object to do some dumb tasks, like calculating the Cosine of 30.
$objSC = New-Object -ComObject ScriptControl
$objSC.Language = "jscript"
$result = $sc.Eval("Math.cos(30)")
$objSC = $null
$result
returns: 0.154251449887584
No comments:
Post a Comment