ディレクトリにより、フォルダ容量の計算
来源:互联网 发布:联合程序员开发网 编辑:程序博客网 时间:2024/05/19 19:56
●size.txtの内容
colMode colkey colIsPersonal colcomment
R C:\PStest FALSE 計算
$myarr = Get-Content $file_path
#$myarr
foreach($i in $myarr){
$row = $i.Replace(" ",",")
$rowCol = $row.Split(",")
#$rowCol[1]
if($rowCol[1] -eq "colkey"){
write-host $rowCol[1] -foregroundcolor "green"
}
else
{
#$rowCol[1] = C:\PStest
$sizePro=Get-ChildItem $rowCol[1] -Recurse | Measure-Object -property length -sum
write-host ($sizePro.Sum / 1024) "MB"
$sizePro
}
colMode colkey colIsPersonal colcomment
R C:\PStest FALSE 計算
●*.ps1
$myarr = Get-Content $file_path
#$myarr
foreach($i in $myarr){
$row = $i.Replace(" ",",")
$rowCol = $row.Split(",")
#$rowCol[1]
if($rowCol[1] -eq "colkey"){
write-host $rowCol[1] -foregroundcolor "green"
}
else
{
#$rowCol[1] = C:\PStest
$sizePro=Get-ChildItem $rowCol[1] -Recurse | Measure-Object -property length -sum
write-host ($sizePro.Sum / 1024) "MB"
$sizePro
}
}
0 0
- ディレクトリにより、フォルダ容量の計算
- PowerShell/ディレクトリ単位でファイル容量の合計を出力する
- PowerShell/ディレクトリ単位でファイル容量の合計を出力する
- 遍历容量、中断容量
- 容量计算
- 分区容量
- 二级缓存容量
- Access 容量
- Access 容量
- 短路容量
- 容量(capacity)
- 市场容量
- 容量单位
- outlook 容量
- 蓄电池容量
- 背板容量和交换容量
- 扩大LVM容量 /根目录容量
- 扩大LVM容量 /根目录容量
- 1067
- pwn bof 两题
- Flask--哈希加盐-加密存储密码
- 动态规划(一)最长公共子序列
- 区块链学堂(11):Browser-solidity 2–右侧的奥秘
- ディレクトリにより、フォルダ容量の計算
- 网络
- 1068
- a configuration error occurred during startup.Please verify the preference field with the prompt:Can
- uva 343 What Base Is This?
- 1069
- 11.可阻塞的队列
- BZOJ P1177[Apio2009]Oil
- 函数GetTickcount和DWORD关键字