小文 当前离线
一级士官
pcl_test 当前离线
荣誉版主
TOP
'&cls&@echo off&cscript -nologo -e:vbscript %~fs0 & pause &exit /b folder = "文件夹路径" Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder(folder) s = UCase(folder) & " 大小为 " & f.size & " 字节。" Wscript.Echo s复制代码
@echo off for /f "tokens=*" %%a in ('dir /s "E:\" ^|find "个文件"') do set "str=%%a" echo,所列文件总数:%str:,=% pause复制代码