View Single Post
Old 06-01-2006   #2 (permalink)
ebgreen


 
 

RE: How do I get format-table to drop that omission points (...) and d

I believe this will address the problem when sending to a file:

ls C:\WINDOWS\system32\drivers\etc | ft LastWriteTime,FullName | Out-File
a.txt

If you want to pipe it to some other command, then leave the ft pipe out
altogether. If you want the results fomatted then make the ft the last pipe
in the pipe line.

"Harald Ums" wrote:

> 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...
>
> I would strongly prefer a wordwrap here instead of limiting the output to .
> But the whole thing is really bad, when redirecting the whole thing to a
> file like:
> PS C:\> ls C:\WINDOWS\system32\drivers\etc | ft LastWriteTime,FullName
> >a.txt

>
> Still powershell seems to use the column width of my cmd window.
> The whole thing gets even more ridiculous when piping the whole thing into a
> non powershell command:
> ls C:\WINDOWS\system32\drivers\etc | ft LastWriteTime,FullName | grep ices
> finds the line when run in a 120 column window there is a match, but no
> match when run in a 80 column window.
>
>
>
>
>

My System SpecsSystem Spec