Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Start Process and Redirect Output to powershell window

$
0
0

Hey I am trying to use start-process to call a console app and redirect the output to the powershell window.  Is that possible?  I understand that I can redirect it to a file using:

-redirectstandardinput

-redirectstandardoutput

-redirectstandarderror

I know that I can then read the file and display the contents in the shell.  This approach seems like a hack. I am trying to see if there is a more direct approach.  

I am also not married to using start-process if there is a better option.  

Thanks, 


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>