这个bat 批量当前目录下的的文件夹大小怎么 记录数据到一个文本内?- @echo off
- REM setlocal enabledelayedexpansion
- cd /d "%~dp0"
- for /f "delims=" %%a in ('dir /b /ad') do (
- set /p =%%a: <nul
- powershell -c "(Get-ChildItem -Path '%%a' -Force -Recurse -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum"
- )
- pause
复制代码
|