![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Redirecting StdOutout and Writing StdInput fails to Powershell Console,... Hi, i create a "powershell.exe" process using .NET Process class and redirect all input/output to a stream reader/writer. The interessting thing is, that i get no output when i write to the std input of the powershell process i created with my application. Seems that the powershell works kinda different from a ordniary windows shell, since i dont have any problems in writing and reading from a cmd.exe i created. please can someone explain me the difference of the powershell and a ordinary windows cmd.exe, in case of programming and redirecting input/output to the pwershell. How can i pass input and get output from the poweshell with my application using .NET Code. How i can write and read to stdin and out is clear, but what should i take care fo, to be able to do this with the powershell,...? TIA,... -- Beste Grüsse / Best regards / Votre bien devoue Kerem Gümrükcü ----------------------- "This reply is provided as is, without warranty express or implied." |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| editor for writing powershell scripts | PowerShell | |||
| Redirecting Output in Powershell | PowerShell | |||
| Question: Can you write to the pipeline w/ out writing to the console? | PowerShell | |||
| Request: Looking for help writing some powershell guides | PowerShell | |||
| BUG: Redirecting function contents to a file truncates function lines at the width of the console | PowerShell | |||