2个回答
展开全部
@if(0)==(0) echo off
setlocal enabledelayedexpansion
for /r "D:\" %%a in (*.txt) do (
echo %%a >>"D盘所有txt文件路径.txt"
echo %%~za >>zdx.tmp
)
set "strParams="
for /f "delims=" %%i in (zdx.tmp) do set "strParams=!strParams!%%i"
cscript -nologo -e:jscript %~s0 %strParams%
del zdx.tmp /f /q
pause & goto :EOF
@end
var nParmCount;
nParamCount = WScript.arguments.length;
var fSum=0;
for (var i=0; i<nParamCount; i++) {
var fTmp = parseFloat(WScript.arguments(i));
fSum+=fTmp;
}
WScript.echo("D盘共有txt文件"+nParamCount+"个, 总大小为"+fSum+" KB ");
您的采纳是我们的动力和鼓励,请及时点击【采纳回答】
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询