China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-08 18:07
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Getting the file size from the current clipboard View 692 Replies 5
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: