Pause on large output to console

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of ertuu85 ertuu85 10 months, 2 weeks ago.

  • Author
    Posts
  • #34249
    Profile photo of ertuu85
    ertuu85
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Run the script an pipe it to more.

    c:\myscript.ps1 | more

  • #34299
    Profile photo of ertuu85
    ertuu85
    Participant

    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.