中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: 取当前剪辑板的文件大小 上一主题 | 下一主题
feng199
初级用户





积分 28
发帖 11
注册 2008-1-8
状态 离线
『楼 主』:  取当前剪辑板的文件大小

在文件被复制后,能否取出当前被复制的文件大小?

2008-5-22 19:23
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 2 楼』:  

为什么不在复制之前判断呢?



2008-5-22 20:31
查看资料  发短消息 网志   编辑帖子  回复  引用回复
feng199
初级用户





积分 28
发帖 11
注册 2008-1-8
状态 离线
『第 3 楼』:  

都可以,就是不知道该怎么处理?

2008-5-22 20:41
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 4 楼』:  

for /?

  Quote:
    %~I         - expands %I removing any surrounding quotes (")
    %~fI        - expands %I to a fully qualified path name
    %~dI        - expands %I to a drive letter only
    %~pI        - expands %I to a path only
    %~nI        - expands %I to a file name only
    %~xI        - expands %I to a file extension only
    %~sI        - expanded path contains short names only
    %~aI        - expands %I to file attributes of file
    %~tI        - expands %I to date/time of file
    %~zI        - expands %I to size of file
    %~$PATH:I   - searches the directories listed in the PATH
                   environment variable and expands %I to the
                   fully qualified name of the first one found.
                   If the environment variable name is not
                   defined or the file is not found by the
                   search, then this modifier expands to the
                   empty string





2008-5-22 20:43
查看资料  发短消息 网志   编辑帖子  回复  引用回复
feng199
初级用户





积分 28
发帖 11
注册 2008-1-8
状态 离线
『第 5 楼』:  

谢谢您!很多命令我都不理解.但我会慢慢消化的。
能不能先告诉我怎么用法?

2008-5-22 21:25
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
HAT
版主





积分 9023
发帖 5017
注册 2007-5-31
状态 离线
『第 6 楼』:  


@echo off
for %%a in (C:\test\*.txt) do echo 文件%%a的大小是:%%~zaB




2008-5-22 21:30
查看资料  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: