Learn about Windows PowerShell
Summary: Learn to display output and write it to a text file.
I need to display process output at the Windows PowerShell prompt and write that same output to a text file. How can I do this?
Get-process | Tee-Object -FilePath c:\fso\proc.txt
Hi
another variant:
PS II> &{($a=gps);$a>g.txt}
@Walid Toumi very good. I like it. thanks for sharing!
very funny