Windows Vista Forums

Format Issue

  1. #1


    Brandon Shell [MVP] Guest

    Re: Format Issue

    Out-File has -width parameter

    You may also want the -auto flag for Format-Table

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    TM> I'm piping a command through Format-Table and then to Out-File. I'm
    TM> asking for a single column that is pretty wide. It truncates the
    TM> column and puts ... at the end. I can't remember how to expand it
    TM> to give me everything.
    TM>
    TM> ----------------------------------------------------
    TM> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM> SQL Server MVP
    TM> Toronto, ON Canada
    TM> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  2. #2


    Tom Moreau Guest

    Format Issue

    I'm piping a command through Format-Table and then to Out-File. I'm asking
    for a single column that is pretty wide. It truncates the column and puts
    .... at the end. I can't remember how to expand it to give me everything.

    --
    Tom

    ----------------------------------------------------
    Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    SQL Server MVP
    Toronto, ON Canada
    https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  3. #3


    Tom Moreau Guest

    Re: Format Issue

    It's almost working. I had tried the -AutoSize parameter for Format-Table
    and it didn't make any difference. However, the -Width parameter for
    Out-File does. That said, I don't like the fact that it pads blanks onto
    lines that are shorter than the specified width. Is there some way of
    expanding that doesn't put unnecessary whitespace?

    --
    Tom

    ----------------------------------------------------
    Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    SQL Server MVP
    Toronto, ON Canada
    https://mvp.support.microsoft.com/profile/Tom.Moreau


    "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    news:29d4f64638ba8ca2800c7023b18@xxxxxx
    Out-File has -width parameter

    You may also want the -auto flag for Format-Table

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    TM> I'm piping a command through Format-Table and then to Out-File. I'm
    TM> asking for a single column that is pretty wide. It truncates the
    TM> column and puts ... at the end. I can't remember how to expand it
    TM> to give me everything.
    TM>
    TM> ----------------------------------------------------
    TM> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM> SQL Server MVP
    TM> Toronto, ON Canada
    TM> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  4. #4


    Brandon Shell [MVP] Guest

    Re: Format Issue

    I find that its best to format the data yourself when piping to a file

    I can provide you example if you gimme an idea of what your looking for.

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    TM> It's almost working. I had tried the -AutoSize parameter for
    TM> Format-Table and it didn't make any difference. However, the -Width
    TM> parameter for Out-File does. That said, I don't like the fact that
    TM> it pads blanks onto lines that are shorter than the specified width.
    TM> Is there some way of expanding that doesn't put unnecessary
    TM> whitespace?
    TM>
    TM> ----------------------------------------------------
    TM> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM> SQL Server MVP
    TM> Toronto, ON Canada
    TM> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM> Out-File has -width parameter
    TM> You may also want the -auto flag for Format-Table
    TM>
    TM> Brandon Shell
    TM> ---------------
    TM> Blog: http://www.bsonposh.com/
    TM> PSH Scripts Project: www.codeplex.com/psobject
    TM>> I'm piping a command through Format-Table and then to Out-File.
    TM>> I'm asking for a single column that is pretty wide. It truncates
    TM>> the column and puts ... at the end. I can't remember how to expand
    TM>> it to give me everything.
    TM>>
    TM>> ----------------------------------------------------
    TM>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>> SQL Server MVP
    TM>> Toronto, ON Canada
    TM>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  5. #5


    Tom Moreau Guest

    Re: Format Issue

    Right now, I'm just trying to save the command history. Where I have a
    problem is if the command has a lot of characters in it. I've got the rest
    down fine; it's just that width thing...

    --
    Tom

    ----------------------------------------------------
    Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    SQL Server MVP
    Toronto, ON Canada
    https://mvp.support.microsoft.com/profile/Tom.Moreau


    "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    news:29d4f64638bf8ca28044f562e9f@xxxxxx
    I find that its best to format the data yourself when piping to a file

    I can provide you example if you gimme an idea of what your looking for.

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    TM> It's almost working. I had tried the -AutoSize parameter for
    TM> Format-Table and it didn't make any difference. However, the -Width
    TM> parameter for Out-File does. That said, I don't like the fact that
    TM> it pads blanks onto lines that are shorter than the specified width.
    TM> Is there some way of expanding that doesn't put unnecessary
    TM> whitespace?
    TM>
    TM> ----------------------------------------------------
    TM> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM> SQL Server MVP
    TM> Toronto, ON Canada
    TM> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM> Out-File has -width parameter
    TM> You may also want the -auto flag for Format-Table
    TM>
    TM> Brandon Shell
    TM> ---------------
    TM> Blog: http://www.bsonposh.com/
    TM> PSH Scripts Project: www.codeplex.com/psobject
    TM>> I'm piping a command through Format-Table and then to Out-File.
    TM>> I'm asking for a single column that is pretty wide. It truncates
    TM>> the column and puts ... at the end. I can't remember how to expand
    TM>> it to give me everything.
    TM>>
    TM>> ----------------------------------------------------
    TM>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>> SQL Server MVP
    TM>> Toronto, ON Canada
    TM>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  6. #6


    Brandon Shell [MVP] Guest

    Re: Format Issue

    have you looked at

    Start-Transcript
    http://technet.microsoft.com/en-us/l.../bb978600.aspx

    and

    Stop-Transcript
    http://technet.microsoft.com/en-us/l.../bb978567.aspx

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    TM> Right now, I'm just trying to save the command history. Where I
    TM> have a problem is if the command has a lot of characters in it.
    TM> I've got the rest down fine; it's just that width thing...
    TM>
    TM> ----------------------------------------------------
    TM> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM> SQL Server MVP
    TM> Toronto, ON Canada
    TM> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM> news:29d4f64638bf8ca28044f562e9f@xxxxxx
    TM> I find that its best to format the data yourself when piping to a
    TM> file
    TM> I can provide you example if you gimme an idea of what your looking
    TM> for.
    TM>
    TM> Brandon Shell
    TM> ---------------
    TM> Blog: http://www.bsonposh.com/
    TM> PSH Scripts Project: www.codeplex.com/psobject
    TM>> It's almost working. I had tried the -AutoSize parameter for
    TM>> Format-Table and it didn't make any difference. However, the
    TM>> -Width parameter for Out-File does. That said, I don't like the
    TM>> fact that it pads blanks onto lines that are shorter than the
    TM>> specified width. Is there some way of expanding that doesn't put
    TM>> unnecessary whitespace?
    TM>>
    TM>> ----------------------------------------------------
    TM>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>> SQL Server MVP
    TM>> Toronto, ON Canada
    TM>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM>> Out-File has -width parameter
    TM>> You may also want the -auto flag for Format-Table
    TM>> Brandon Shell
    TM>> ---------------
    TM>> Blog: http://www.bsonposh.com/
    TM>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>> I'm piping a command through Format-Table and then to Out-File.
    TM>>> I'm asking for a single column that is pretty wide. It truncates
    TM>>> the column and puts ... at the end. I can't remember how to
    TM>>> expand
    TM>>> it to give me everything.
    TM>>> ----------------------------------------------------
    TM>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>> SQL Server MVP
    TM>>> Toronto, ON Canada
    TM>>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  7. #7


    Shay Levi Guest

    Re: Format Issue

    Try

    format-table -auto -wrap


    -----
    Shay Levi
    $cript Fanatic
    http://scriptolog.blogspot.com

    > Wow! I did not know that! Thanx!
    >
    > That said, I'm still wondering how to make the complete width of a
    > wide column show up, regardless of whether or not I'm saving to a
    > file.
    >
    > ----------------------------------------------------
    > Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    > SQL Server MVP
    > Toronto, ON Canada
    > https://mvp.support.microsoft.com/profile/Tom.Moreau
    > "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    > news:29d4f64638c58ca2808c41fdd8f@xxxxxx
    > have you looked at
    > Start-Transcript
    > http://technet.microsoft.com/en-us/l.../bb978600.aspx
    > and
    >
    > Stop-Transcript
    > http://technet.microsoft.com/en-us/l.../bb978567.aspx
    > Brandon Shell
    > ---------------
    > Blog: http://www.bsonposh.com/
    > PSH Scripts Project: www.codeplex.com/psobject
    TM>> Right now, I'm just trying to save the command history. Where I
    TM>> have a problem is if the command has a lot of characters in it.
    TM>> I've got the rest down fine; it's just that width thing...
    TM>>
    TM>> ----------------------------------------------------
    TM>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>> SQL Server MVP
    TM>> Toronto, ON Canada
    TM>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>> news:29d4f64638bf8ca28044f562e9f@xxxxxx
    TM>> I find that its best to format the data yourself when piping to a
    TM>> file
    TM>> I can provide you example if you gimme an idea of what your looking
    TM>> for.
    TM>> Brandon Shell
    TM>> ---------------
    TM>> Blog: http://www.bsonposh.com/
    TM>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>> It's almost working. I had tried the -AutoSize parameter for
    TM>>> Format-Table and it didn't make any difference. However, the
    TM>>> -Width parameter for Out-File does. That said, I don't like the
    TM>>> fact that it pads blanks onto lines that are shorter than the
    TM>>> specified width. Is there some way of expanding that doesn't put
    TM>>> unnecessary whitespace?
    TM>>>
    TM>>> ----------------------------------------------------
    TM>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>> SQL Server MVP
    TM>>> Toronto, ON Canada
    TM>>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>>> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM>>> Out-File has -width parameter
    TM>>> You may also want the -auto flag for Format-Table
    TM>>> Brandon Shell
    TM>>> ---------------
    TM>>> Blog: http://www.bsonposh.com/
    TM>>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>>> I'm piping a command through Format-Table and then to Out-File.
    TM>>>> I'm asking for a single column that is pretty wide. It truncates
    TM>>>> the column and puts ... at the end. I can't remember how to
    TM>>>> expand
    TM>>>> it to give me everything.
    TM>>>> ----------------------------------------------------
    TM>>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>>> SQL Server MVP
    TM>>>> Toronto, ON Canada
    TM>>>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  8. #8


    Tom Moreau Guest

    Re: Format Issue

    Wow! I did not know that! Thanx!

    That said, I'm still wondering how to make the complete width of a wide
    column show up, regardless of whether or not I'm saving to a file.


    --
    Tom

    ----------------------------------------------------
    Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    SQL Server MVP
    Toronto, ON Canada
    https://mvp.support.microsoft.com/profile/Tom.Moreau


    "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    news:29d4f64638c58ca2808c41fdd8f@xxxxxx
    have you looked at

    Start-Transcript
    http://technet.microsoft.com/en-us/l.../bb978600.aspx

    and

    Stop-Transcript
    http://technet.microsoft.com/en-us/l.../bb978567.aspx

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    TM> Right now, I'm just trying to save the command history. Where I
    TM> have a problem is if the command has a lot of characters in it.
    TM> I've got the rest down fine; it's just that width thing...
    TM>
    TM> ----------------------------------------------------
    TM> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM> SQL Server MVP
    TM> Toronto, ON Canada
    TM> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM> news:29d4f64638bf8ca28044f562e9f@xxxxxx
    TM> I find that its best to format the data yourself when piping to a
    TM> file
    TM> I can provide you example if you gimme an idea of what your looking
    TM> for.
    TM>
    TM> Brandon Shell
    TM> ---------------
    TM> Blog: http://www.bsonposh.com/
    TM> PSH Scripts Project: www.codeplex.com/psobject
    TM>> It's almost working. I had tried the -AutoSize parameter for
    TM>> Format-Table and it didn't make any difference. However, the
    TM>> -Width parameter for Out-File does. That said, I don't like the
    TM>> fact that it pads blanks onto lines that are shorter than the
    TM>> specified width. Is there some way of expanding that doesn't put
    TM>> unnecessary whitespace?
    TM>>
    TM>> ----------------------------------------------------
    TM>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>> SQL Server MVP
    TM>> Toronto, ON Canada
    TM>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM>> Out-File has -width parameter
    TM>> You may also want the -auto flag for Format-Table
    TM>> Brandon Shell
    TM>> ---------------
    TM>> Blog: http://www.bsonposh.com/
    TM>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>> I'm piping a command through Format-Table and then to Out-File.
    TM>>> I'm asking for a single column that is pretty wide. It truncates
    TM>>> the column and puts ... at the end. I can't remember how to
    TM>>> expand
    TM>>> it to give me everything.
    TM>>> ----------------------------------------------------
    TM>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>> SQL Server MVP
    TM>>> Toronto, ON Canada
    TM>>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  9. #9


    Tom Moreau Guest

    Re: Format Issue

    That's not bad, but as its name implies, it wraps to the next line. I'd
    like it just to give me the full width without wrapping.

    --
    Tom

    ----------------------------------------------------
    Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    SQL Server MVP
    Toronto, ON Canada
    https://mvp.support.microsoft.com/profile/Tom.Moreau


    "Shay Levi" <no@xxxxxx> wrote in message
    news:8766a9441aada8ca28449cfc0428@xxxxxx
    Try

    format-table -auto -wrap


    -----
    Shay Levi
    $cript Fanatic
    http://scriptolog.blogspot.com

    > Wow! I did not know that! Thanx!
    >
    > That said, I'm still wondering how to make the complete width of a
    > wide column show up, regardless of whether or not I'm saving to a
    > file.
    >
    > ----------------------------------------------------
    > Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    > SQL Server MVP
    > Toronto, ON Canada
    > https://mvp.support.microsoft.com/profile/Tom.Moreau
    > "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    > news:29d4f64638c58ca2808c41fdd8f@xxxxxx
    > have you looked at
    > Start-Transcript
    > http://technet.microsoft.com/en-us/l.../bb978600.aspx
    > and
    >
    > Stop-Transcript
    > http://technet.microsoft.com/en-us/l.../bb978567.aspx
    > Brandon Shell
    > ---------------
    > Blog: http://www.bsonposh.com/
    > PSH Scripts Project: www.codeplex.com/psobject
    TM>> Right now, I'm just trying to save the command history. Where I
    TM>> have a problem is if the command has a lot of characters in it.
    TM>> I've got the rest down fine; it's just that width thing...
    TM>>
    TM>> ----------------------------------------------------
    TM>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>> SQL Server MVP
    TM>> Toronto, ON Canada
    TM>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>> news:29d4f64638bf8ca28044f562e9f@xxxxxx
    TM>> I find that its best to format the data yourself when piping to a
    TM>> file
    TM>> I can provide you example if you gimme an idea of what your looking
    TM>> for.
    TM>> Brandon Shell
    TM>> ---------------
    TM>> Blog: http://www.bsonposh.com/
    TM>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>> It's almost working. I had tried the -AutoSize parameter for
    TM>>> Format-Table and it didn't make any difference. However, the
    TM>>> -Width parameter for Out-File does. That said, I don't like the
    TM>>> fact that it pads blanks onto lines that are shorter than the
    TM>>> specified width. Is there some way of expanding that doesn't put
    TM>>> unnecessary whitespace?
    TM>>>
    TM>>> ----------------------------------------------------
    TM>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>> SQL Server MVP
    TM>>> Toronto, ON Canada
    TM>>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>>> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM>>> Out-File has -width parameter
    TM>>> You may also want the -auto flag for Format-Table
    TM>>> Brandon Shell
    TM>>> ---------------
    TM>>> Blog: http://www.bsonposh.com/
    TM>>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>>> I'm piping a command through Format-Table and then to Out-File.
    TM>>>> I'm asking for a single column that is pretty wide. It truncates
    TM>>>> the column and puts ... at the end. I can't remember how to
    TM>>>> expand
    TM>>>> it to give me everything.
    TM>>>> ----------------------------------------------------
    TM>>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>>> SQL Server MVP
    TM>>>> Toronto, ON Canada
    TM>>>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

  10. #10


    Shay Levi Guest

    Re: Format Issue

    You can out-file with a -width enough to accommodate the longest string.


    -----
    Shay Levi
    $cript Fanatic
    http://scriptolog.blogspot.com

    > That's not bad, but as its name implies, it wraps to the next line.
    > I'd like it just to give me the full width without wrapping.
    >
    > ----------------------------------------------------
    > Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    > SQL Server MVP
    > Toronto, ON Canada
    > https://mvp.support.microsoft.com/profile/Tom.Moreau
    > "Shay Levi" <no@xxxxxx> wrote in message
    > news:8766a9441aada8ca28449cfc0428@xxxxxx Try
    >
    > format-table -auto -wrap
    >
    > -----
    > Shay Levi
    > $cript Fanatic
    > http://scriptolog.blogspot.com

    >> Wow! I did not know that! Thanx!
    >>
    >> That said, I'm still wondering how to make the complete width of a
    >> wide column show up, regardless of whether or not I'm saving to a
    >> file.
    >>
    >> ----------------------------------------------------
    >> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    >> SQL Server MVP
    >> Toronto, ON Canada
    >> https://mvp.support.microsoft.com/profile/Tom.Moreau
    >> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    >> news:29d4f64638c58ca2808c41fdd8f@xxxxxx
    >> have you looked at
    >> Start-Transcript
    >> http://technet.microsoft.com/en-us/l.../bb978600.aspx
    >> and
    >> Stop-Transcript
    >> http://technet.microsoft.com/en-us/l.../bb978567.aspx
    >> Brandon Shell
    >> ---------------
    >> Blog: http://www.bsonposh.com/
    >> PSH Scripts Project: www.codeplex.com/psobject
    TM>>> Right now, I'm just trying to save the command history. Where I
    TM>>> have a problem is if the command has a lot of characters in it.
    TM>>> I've got the rest down fine; it's just that width thing...
    TM>>>
    TM>>> ----------------------------------------------------
    TM>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>> SQL Server MVP
    TM>>> Toronto, ON Canada
    TM>>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in message
    TM>>> news:29d4f64638bf8ca28044f562e9f@xxxxxx
    TM>>> I find that its best to format the data yourself when piping to a
    TM>>> file
    TM>>> I can provide you example if you gimme an idea of what your
    TM>>> looking
    TM>>> for.
    TM>>> Brandon Shell
    TM>>> ---------------
    TM>>> Blog: http://www.bsonposh.com/
    TM>>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>>> It's almost working. I had tried the -AutoSize parameter for
    TM>>>> Format-Table and it didn't make any difference. However, the
    TM>>>> -Width parameter for Out-File does. That said, I don't like the
    TM>>>> fact that it pads blanks onto lines that are shorter than the
    TM>>>> specified width. Is there some way of expanding that doesn't put
    TM>>>> unnecessary whitespace?
    TM>>>>
    TM>>>> ----------------------------------------------------
    TM>>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>>> SQL Server MVP
    TM>>>> Toronto, ON Canada
    TM>>>> https://mvp.support.microsoft.com/profile/Tom.Moreau
    TM>>>> "Brandon Shell [MVP]" <a_bshell.mask@xxxxxx> wrote in
    TM>>>> message
    TM>>>> news:29d4f64638ba8ca2800c7023b18@xxxxxx
    TM>>>> Out-File has -width parameter
    TM>>>> You may also want the -auto flag for Format-Table
    TM>>>> Brandon Shell
    TM>>>> ---------------
    TM>>>> Blog: http://www.bsonposh.com/
    TM>>>> PSH Scripts Project: www.codeplex.com/psobject
    TM>>>>> I'm piping a command through Format-Table and then to Out-File.
    TM>>>>> I'm asking for a single column that is pretty wide. It
    TM>>>>> truncates
    TM>>>>> the column and puts ... at the end. I can't remember how to
    TM>>>>> expand
    TM>>>>> it to give me everything.
    TM>>>>> ----------------------------------------------------
    TM>>>>> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
    TM>>>>> SQL Server MVP
    TM>>>>> Toronto, ON Canada
    TM>>>>> https://mvp.support.microsoft.com/profile/Tom.Moreau



      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Format Issue

Similar Threads
Thread Forum
Format Issue of Windows Mail and M.S. Group
Hi: When clicking to open any mails including this site, MS Newsgroup, top right pane of 'X' part is not visible. In the past, I used 'Shove-It'...
Vista General
-f format Format-Table Format-List against Select
For some reason I need to rename a column within a select Get-WmiObject win32_SystemEnclosure -ComputerName SD-IT003 it returns SerialNumber ...
PowerShell
Windows Mail format bar doesn't format color, size, justification
Windows Mail will not format text even though it shows the formatting bar. No color, justification, photos, or size works. Only B I U work and font...
Browsers & Mail
Flash drive issue- Vista asking me to format???
Hey guys, My girlfriend has a 4GB Lexar flash drive that she primarily uses on her XP laptop, but has used on my Vista desktop countless times. ...
Vista hardware & devices
Format-List Issue
When I run this in PowerShell: Get-Date Get-EventLog security -newest 1 | Format-List I get this error: out-lineoutput : Object of type...
PowerShell
Disk Format Issue
I recently purchased a 160 GB version of the following for use as a dedicated backup device:...
Vista General
CD Ripping Issue - Only Lossless Format works in WMP11 ??!!
Have recently upgrade my LG P1 Notebook to Vista Business. Running Realtek HD Audio and have the latest driver 1.69 installed. When I rip music from...
Vista music pictures video