Sunday, January 18, 2009

print out a list of processes

[] to send a list of processes to the unicode file

PS> get-process
| out-file -filepath d:\temp\sample.txt

[] to send a list of processes to default printer, e.g. doPDF

PS> get-process
| out-printer

[] to send a list of processes to the ASCII file

PS> get-process
| out-file -filepath d:\temp\sample.txt -Encoding ASCII

[] to save output as it would have displayed on the console

PS> get-process
| out-file -filepath d:\temp\sample.txt -Width 80

Maximum is 2147483647. For example, MS Notepad can accomodate a line that ends at position 1000th (when thewordwrap feature is disabled).

No comments:

Post a Comment