Discussion:
Powershell use
Jean-Luc Arnaud
2016-11-15 13:30:31 UTC
Permalink
Hi all,

Does anyone know how to send powershell commands via a Xojo Shell object?
An example would be welcome.

TIA
--
Jean-Luc Arnaud


_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>
Tim Jones
2016-11-15 16:36:13 UTC
Permalink
Hi Jean-Luc,

Very odd - based on the use in a cmd.exe terminal, you should be able to execute PowerShell.exe in a Mode 0 shell, theShell.WriteLine PowerShell commands, and then exit. However, from the Xojo Shell, that either hangs or falls through with no action at all ...

Tim
Post by Jean-Luc Arnaud
Hi all,
Does anyone know how to send powershell commands via a Xojo Shell object?
An example would be welcome.
TIA
--
Jean-Luc Arnaud
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>
Jean-Luc Arnaud
2016-11-15 17:03:31 UTC
Permalink
Ok, Tim.

Many thanks for reply and explanation.

Jean-Luc Arnaud
Post by Tim Jones
Hi Jean-Luc,
Very odd - based on the use in a cmd.exe terminal, you should be able to execute PowerShell.exe in a Mode 0 shell, theShell.WriteLine PowerShell commands, and then exit. However, from the Xojo Shell, that either hangs or falls through with no action at all ...
Tim
Post by Jean-Luc Arnaud
Hi all,
Does anyone know how to send powershell commands via a Xojo Shell object?
An example would be welcome.
TIA
--
Jean-Luc Arnaud
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>

Continue reading on narkive:
Loading...