复制代码
- @set @x=1 /* &@echo off
- (for /d %%d in (*) do cscript /nologo /e:jscript "%~f0" "%%~fd")>结果列表.txt
- pause&exit/b */
- v=WSH.arguments, fso=WSH.createObject('scripting.fileSystemObject');
- n=0, z=fso.getFolder(v(0)).size; while(z/1024>1){z/=1024;n++};
- z=z.toFixed(0)+['B','KB','MB','GB','TB'][n];
- WSH.echo(z+' '+v(0)), WSH.quit();
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |