- @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"
- ))>1.txt
复制代码 输出结果到1.txt文档中 |