Window title cannot be longer than 1023 characters

Welcome Forums General PowerShell Q&A Window title cannot be longer than 1023 characters

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
3 years, 3 months ago.

  • Author
    Posts
  • #30161

    Participant
    Points: 0
    Rank: Member

    Can anyone take a look at this script please?

    https://github.com/KuduApps/Dev14_Net46_Mvc5/blob/powershell/deploy.ps1

    It's being invoked exactly like this:
    powershell -NoProfile -NoLogo -ExecutionPolicy Unrestricted -File deploy.ps1

    However seems that whenever an external binary is called (nuget.exe for example on line 92) all the stdout goes into the Window Title (?!?) and the execution breaks with

    Window title cannot be longer than 1023 characters

    .

    Any idea how in the world this can happen?

  • #30519

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    I'd actually surmise that the external command being run is being displayed in the title bar – which is what Cmd.exe does – and it's too long to fit. I've not run into this, personally, though. I'll ask around.

The topic ‘Window title cannot be longer than 1023 characters’ is closed to new replies.