Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Format Issue

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-18-2008   #1 (permalink)
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
Old 01-18-2008   #2 (permalink)
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
Old 01-18-2008   #3 (permalink)
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
Old 01-18-2008   #4 (permalink)
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
Old 01-18-2008   #5 (permalink)
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
Old 01-18-2008   #6 (permalink)
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
Old 01-18-2008   #7 (permalink)
Shay Levi
Guest


 

Re: Format Issue

Try

format-table -auto -wrap


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

> 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
Old 01-18-2008   #8 (permalink)
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
Old 01-18-2008   #9 (permalink)
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
Quote:

> 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
Old 01-18-2008   #10 (permalink)
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
Quote:

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

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

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash drive issue- Vista asking me to format??? DanGilley Vista hardware & devices 1 04-16-2008 09:16 PM
Format-List Issue Per Moeller-Olsen PowerShell 8 03-29-2008 05:45 PM
Disk Format Issue Iain Vista General 5 11-29-2007 05:15 PM
CD Ripping Issue - Only Lossless Format works in WMP11 ??!! sveale01 Vista music pictures video 7 07-05-2007 06:04 AM
Help! DVD format error: "Windows was unable to complete the format hamishmacdonald Vista General 13 03-29-2007 11:24 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51