ls ls | Format-Table | Out-Host ls | Out-Default
PS C:Powershell> Get-Command -Verb format CommandType Name Definition ----------- ---- ---------- Cmdlet Format-Custom Format-Custom [[-Property] Cmdlet Format-List Format-List [[-Property] Cmdlet Format-Table Format-Table [[-Property] Cmdlet Format-Wide Format-Wide [[-Property]
PS C:Powershell> ls | Format-Table Name,Length,LastWriteTime Name Length LastWriteTime ---- ------ ------------- ABC 2011/11/23 17:25:53 myscript 2011/11/29 18:21:28 a.html 67580 2011/11/24 18:30:13 a.txt 26384 2011/11/24 20:04:31 alias 12060 2011/11/24 20:26:36
PS C:Powershell> Get-Process i* | Format-Table Name,pe*64
Name PeakPagedMemorySize PeakWorkingSet64 PeakVirtualMemorySi
64 ze64
---- ------------------- ---------------- -------------------
Idle 0 0 0
IMECFMUI 946176 4292608 48054272
IMECMNT 1564672 5320704 65482752
IMEDICTUPDATE 1224704 4579328 31965184
PS C:Powershell> ls | Format-Table Name,{ [int]($_.Length/1kb) }
Name [int]($_.Length/1kb)
---- ----------------------
function.ps1 21
LogoTestConfig.xml 0
ls.html 3
name.html 7
PS C:Powershell> $column = @{Expression={ [int]($_.Length/1KB) }; Label="KB" }
PS C:Powershell> Dir | Format-Table Name, $column
Name KB
---- ----------------------
function.ps1 21
LogoTestConfig.xml 0
ls.html 3
name.html
PS C:Powershell> ls 目录: C:Powershell Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 2011/11/23 17:25 ABC d---- 2011/11/29 18:21 myscript -a--- 2011/11/24 18:30 67580 a.html -a--- 2011/11/24 20:04 26384 a.txt PS C:Powershell> ls | Format-Table -AutoSize 目录: C:Powershell Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 2011/11/23 17:25 ABC d---- 2011/11/29 18:21 myscript -a--- 2011/11/24 18:30 67580 a.html
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有