Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Redirecting StdOutout and Writing StdInput fails to Powershell Console,...

Reply
 
Old 08-17-2007   #1 (permalink)
Kerem Gümrükcü


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46