Pause on large output to console

This topic contains 2 replies, has 2 voices, and was last updated by  ertuu85 2 years, 5 months ago.

  • Author
  • #34249


    If you produce a lot of output, is there a way to pause it when it fills the console window up and prompt for a keystroke to continue to see the next section of output? Such as like when doing a linux help file?

  • #34250

    Don Jones

    Run the script an pipe it to more.

    c:\myscript.ps1 | more

  • #34299


    Well, I'm actually trying to do it withint a script like, in this case I"m displaying all vmware datastores that are available and letting the user pick which one to reside a VM on.

    Sometimes that list can be in the hundreds which would spill off the console, i was wondering if it was possible to pause in that output. If not I figure my other option is to like, display only the top 50 items or so.

You must be logged in to reply to this topic.