简体   繁体   English

从控制台调用ISE样式的PowerShell?

[英]Call ISE-style PowerShell from console?

In PowerShell, when one uses Out-Gridview while running from the console in powershell.exe, it displays a new forms-style window. 在PowerShell中,当从powershell.exe中的控制台运行时使用Out-Gridview时,它将显示一个新的窗体样式窗口。 When running scripts in PowerShell ISE that call things like Write-Progress , they render rather differently in a new window with Windows graphical elements rather than with their usual console displays. 当在PowerShell ISE中运行调用诸如Write-Progress类的脚本时,它们在具有Windows图形元素而不是通常的控制台显示的新窗口中呈现的方式会大不相同。

Is it possible to call cmdlets like Write-Progress in the console and get them to open ISE-style displays anyway like Out-Gridview always does? 是否可以像Out-Gridview一样,在控制台中调用cmdlet(如Write-Progress并使其打开ISE样式的显示? Ultimately, I'd like to be able to benefit from the free UI elements meant for ISE without having to go manually create form objects, etc. 最终,我希望能够从ISE所需的免费UI元素中受益,而不必手动创建表单对象等。

Write-Progress根据其运行的主机调整其输出。AFAICT无法更改该行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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