DOS 批处理获取文件大小
来源:互联网 发布:男主换脸的网络电影 编辑:程序博客网 时间:2024/06/05 09:42
最近研究了几天,终于写了出来.特别分享.
@echo off&setlocal enabledelayedexpansionset "fn=E:\cheleon\data\localdb.mdb"
set /a "k=0"
for /f "skip=4 delims=" %%t in ('dir /-c %fn%') do (
set str=%%t set /a "k=k+1" if !k! GEQ 1 goto LN
)
:LN
for /f "tokens=1-10 delims=/-: " %%o in ("%str%") do (
set /a w1=%%t/1024
)
echo filesiza:!w1!KB
0 0
- DOS 批处理获取文件大小
- 批处理(DOS)获取注册表键值
- 批处理dos下获取当前路径命令
- 批处理dos下获取当前路径命令
- dos批处理
- DOS批处理
- dos+批处理
- dos 批处理
- dos批处理
- dos 批处理
- DOS批处理
- DOS批处理
- DOS批处理
- Dos批处理
- DOS 批处理
- DOS批处理
- Dos批处理%~
- 批处理获得文件大小
- 列表适配的时候报错:Resources$NotFoundException: String resource ID #0x181aceb
- 求二叉树的节点数
- logback
- C++List模板类的使用
- Jasperreports6.3.1+Jaspersoft studio6.3.1进行报表开发实战教程(六)
- DOS 批处理获取文件大小
- 我的第一个c++程序
- IDEA_Spring_AOP 准备
- Js中的this关键字(吉木自学)
- 这几个月的思维转变
- 递增运算符&&递减运算符
- 获取已经安装的apk以及下载在文件夹的apk的版本号
- 清橙A1201 Will的烦恼
- maven中plugins和pluginmanagement的区别