есть код
Код:
Код: Выделить всё
#include
$Cmd = 'dsquery'
$PowerShell = Run('PowerShell.exe '&$Cmd, "", @SW_HIDE , $STDERR_CHILD + $STDOUT_CHILD + $STDIN_CHILD)
StdinWrite($PowerShell)
While 1
$line = StdoutRead($PowerShell)
If @error Then ExitLoop
If $line "" Then
MsgBox(0,"",$line)
EndIf
Wend
While 1
$line = StderrRead($PowerShell)
If @error Then ExitLoop
MsgBox(0,"",$line)
Wendно вот беда по русски он не может писать.... что можно придумать?
может есть другой способ взаимодействия с powershell ?
.
((