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 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