PowerShell
Posted: Fri Oct 22, 2010 12:28 am
Hi!
Has anyone had any luck executing PowerShell from LC? I've tried three ways:
1. Setting Powershell to be the shellCommand, then using shell().
2. Using cmd.com to send "powershell xxx" commands using shell().
3. Using the open/write/read process process.
None seem able to close the PowerShell process once it is open (including "close process"), and none seem to get any response back in either "it" or "the result", except for "-?" help return. I sometimes get a partial return if I call up the Task Manager and kill the PowerShell process that way, but not if I interrupt LC with a ctrl-period.
Thanks,
Walt
Has anyone had any luck executing PowerShell from LC? I've tried three ways:
1. Setting Powershell to be the shellCommand, then using shell().
2. Using cmd.com to send "powershell xxx" commands using shell().
3. Using the open/write/read process process.
None seem able to close the PowerShell process once it is open (including "close process"), and none seem to get any response back in either "it" or "the result", except for "-?" help return. I sometimes get a partial return if I call up the Task Manager and kill the PowerShell process that way, but not if I interrupt LC with a ctrl-period.
Thanks,
Walt