Original Poster
Posted 2008-05-22 19:23 · 中国 福建 厦门 电信
初级用户
★
Credits 28 Posts 11 Joined 2008-01-08 17:35 18-year member UID 108004 Gender Male
Status Offline
After a file has been copied, is it possible to get the size of the file that was just copied?
Floor 2
Posted 2008-05-22 20:31 · 中国 重庆 电信
版主
★★★★★
Credits 9,023 Posts 5,017 Joined 2007-05-31 19:39 19-year member UID 89899 Gender Male
Status Offline
Why not check it before copying?
Floor 3
Posted 2008-05-22 20:41 · 中国 福建 厦门 电信
初级用户
★
Credits 28 Posts 11 Joined 2008-01-08 17:35 18-year member UID 108004 Gender Male
Status Offline
Either way is fine, I just don't know how to handle it.
Floor 4
Posted 2008-05-22 20:43 · 中国 重庆 电信
版主
★★★★★
Credits 9,023 Posts 5,017 Joined 2007-05-31 19:39 19-year member UID 89899 Gender Male
Status Offline
Floor 5
Posted 2008-05-22 21:25 · 中国 福建 厦门 电信
初级用户
★
Credits 28 Posts 11 Joined 2008-01-08 17:35 18-year member UID 108004 Gender Male
Status Offline
Thank you! There are a lot of commands I don't understand. But I'll digest them slowly.
Could you first tell me how to use it?
Floor 6
Posted 2008-05-22 21:30 · 中国 重庆 电信
版主
★★★★★
Credits 9,023 Posts 5,017 Joined 2007-05-31 19:39 19-year member UID 89899 Gender Male
Status Offline
@echo off
for %%a in (C:\test\*.txt) do echo The size of file %%a is: %%~zaB
Forum Jump:
— Select —
站务公告 & 版主讨论
意见反馈 & 网友交流
DOS学习入门 & 精彩文章 (教学室)
DOS疑难解答 & 问题讨论 (解答室)
DOS启动盘 & LOGO技术 (启动盘室)
DOS批处理 & 脚本技术(批处理室)
DOS媒体世界 & 网络技术 (多媒体室)
DOS汉化世界 & 中文系统 (中文化室)
DOS开发编程 & 发展交流 (开发室)
DOS软件下载 & 游戏分享 (下载室)
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区
其它操作系统综合讨论区
WinPE、PowerShell及其它命令行系统专区
贴图灌水、文学娱乐专区
网络日志(Blog)
论坛回收站
├ 链接失效,待修正