用批處理得到每個(gè)目錄占用的空間
更新時(shí)間:2007年08月08日 21:14:47 作者:
復(fù)制代碼 代碼如下:
@echo off
for /f "tokens=*" %%b in ('dir') do echo "%%b"|find "個(gè)文件">nul&&for /f "tokens=3*" %%c in ("%%b") do echo 當(dāng)前目錄 %%c %%d
for /f %%a in ('dir/ad/s/b') do for /f "tokens=*" %%b in ('"dir %%a\"') do echo "%%b"|find "個(gè)文件">nul&&for /f "tokens=3*" %%c in ("%%b") do echo %%a %%c %%d
pause
相關(guān)文章
Windows?批處理的應(yīng)用小結(jié)(ProtoBuf編譯自動(dòng)化工具)
這篇文章主要介紹了Windows?批處理的應(yīng)用(ProtoBuf編譯自動(dòng)化工具),下面使用構(gòu)建一個(gè)將ProtoBuf源文件生成C++源文件以及C#源文件的自動(dòng)化批處理工具為例,需要的朋友可以參考下2022-09-09windows服務(wù)操作之刪除服務(wù) 批處理實(shí)現(xiàn)
用批處理實(shí)現(xiàn)的刪除服務(wù)器的方法,其實(shí)就是利用了批處理下的sc命令。2009-03-03