View Single Post
Old 06-01-2006   #8 (permalink)
/\\/\\o\\/\\/


 
 

Re: How do I get format-table to drop that omission points (...)and display my data


/\/\o\/\/ wrote:
> Using csv format could also be an option for this kind of data :
>
> ls C:\WINDOWS\system32\drivers\etc | select LastWriteTime,FullName |
> out-csv -NoTypeInfo etc.csv
>
> as csv is very suitable for tabledata.
>
> also nice is that you can import it again
>
> import-csv file.csv
>
> gr /\/\o\/\/


export CSV it is :
ls C:\WINDOWS\system32\drivers\etc | select LastWriteTime,FullName |
export-csv -NoTypeInfo etc.csv

> Greetings /\/\o\/\/
>
> Keith Hill [MVP] wrote:
>> "Keith Hill [MVP]" <r_keith_hill@mailhot.moc.nospam> wrote in message
>> news:%23OzeACahGHA.1612@TK2MSFTNGP04.phx.gbl...
>>> "Harald Ums" <Harald_Ums@hotmail.com> wrote in message
>>> news:%23tDEIzZhGHA.4304@TK2MSFTNGP05.phx.gbl...
>>>> I am doing:
>>>> PS C:\> ls C:\WINDOWS\system32\drivers\etc | ft LastWriteTime,FullName
>>>>
>>>> LastWriteTime FullName
>>>> ------------- --------
>>>> 23.08.2001 14:00:00 C:\WINDOWS\system32\drivers\etc\hosts
>>>> 23.08.2001 14:00:00 C:\WINDOWS\system32\drivers\etc\lmho...
>>>> 23.08.2001 14:00:00 C:\WINDOWS\system32\drivers\etc\netw...
>>>> 23.08.2001 14:00:00 C:\WINDOWS\system32\drivers\etc\prot...
>>>> 23.08.2001 14:00:00 C:\WINDOWS\system32\drivers\etc\serv...
>>> Try:
>>>
>>> ls C:\WINDOWS\system32\drivers\etc | ft LastWriteTime,FullName -wrap
>>> -auto
>>>

>>
>> Skip that, it wraps on the column. Try this:
>>
>> ls C:\WINDOWS\system32\drivers\etc |
>> ft -auto LastWriteTime,LastAccessTime ,FullName |
>> out-file -width 350 foo.txt
>>
>> For some reason I thought that format-table had a "width" parameter
>> but it doesn't seem to in RC1R. I guess it just assumes the console
>> width and doesn't allow it to be changed. I guess it doesn't make
>> sense considering that format-table is meant for console output.
>>
>> --
>> Keith
>>

My System SpecsSystem Spec