# 记录当前位置
$cursorLeft = [Console]::CursorLeft
$cursorTop = [Console]::CursorTop
# 遍历所有视频文件
foreach ($video in $videos) {
# 不断刷新着显示正在扫描的视频
Write-Host $video.FullName -NoNewline
Write-Host -NoNewline (" " * [Console]::CursorLeft)
[Console]::SetCursorPosition($cursorLeft, $cursorTop)
}
# 换行
Write-Host ""
上一篇
powershell-统计目录下所有视频的总时长
2023-05-26
下一篇
Capital-基于强化学习的优势率买卖信号学习
2023-05-25