Powershell一個最吸引人的功能是它能夠將任何對象轉換成文本,我們已經使用過將對象屬性以不同的版式轉換成文本,并且輸出。更令人驚奇的是Powershell會把最重要最能代表這個對象本質的信息輸出。一個對象有很多屬性,為什么它單單就輸出那幾個屬性呢?
如果使用:
代碼如下:
Dir | Format-Table * -wrap
PSP PSP PSC PSD PSP PSI Bas Mod Nam Par Exi Roo Ful Ext Cre Cre Las La La La At
ath are hil riv rov sCo eNa e e ent sts t lNa ens ati ati tAc st st st tr
ntP dNa e ide nta me me ion onT onT ces Ac Wr Wr ib
ath me r ine ime ime sTi ce it it ut
r Utc me ss eT eT es
Ti im im
me e eU
Ut tc
c
新聞熱點
疑難解答