PowerTip of the Day-Printing Results

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=4900&elq=127ab4a62a414c678d62945aef96e118

原文:

You will discover that Out-Printer can print results to your default printer. You can also print to any other printer when you specify its name:

Get-Process | Out-Printer -name 'Microsoft XPS Document Writer'

You should ask WIMI if you need to find out the names of your installed printers:

Get-WMIObject Win32_Printer | Select-Object -expandProperty Name

 

翻译:

使用Out-Printer会使用你默认的打印机来打印输出结果。如果想用其它打印机来打印的话只需要指定打印机的名字就可以了:

Get-Process | Out-Printer -name 'Microsoft XPS Document Writer'

本机到底配置了多少打印机?运行WIMI查询就可以查出来:

Get-WMIObject Win32_Printer | Select-Object -expandProperty Name

 

笔记:

即使没有配置过,一台win7的机器也会默认配置很多打印机信息,不如onenotexap等。所以更多时候需要指定到底用哪个配置。

posted @ 2010-06-25 11:22  哥本哈士奇(aspnetx)  阅读(280)  评论(0编辑  收藏  举报