View Single Post
Old 08-11-2006   #2 (permalink)
Keith Hill [MVP]


 
 

Re: Redirecting function contents to a file truncates function lines at the width of the console

The redirector operator uses out-file underneath. Try this:

gc function:foo | out-file filename -width 120

There are other parameters on out-file that allow you to controls things
like encoding, appending, etc.

--
Keith

My System SpecsSystem Spec