简体   繁体   中英

Forward input to powershell, read output from it without the user seeing a console c#

Is there any way I could have an application that acts as a different interface for a powershell prompt, like the ISE does? I just want to make it visually different. I'm thinking something to do with stdin and stdout, but i'm not totally sure how to make that work in C#. As well as the issue of hiding the console window.

Sure you can use the PowerShell engine API to host PowerShell within a WPF or WindowsForms application. See this MSDN topic on hosting PowerShell in your own application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM