标题: 取当前剪辑板的文件大小
[打印本页]
作者: feng199
时间: 2008-5-22 19:23
标题: 取当前剪辑板的文件大小
在文件被复制后,能否取出当前被复制的文件大小?
作者: HAT
时间: 2008-5-22 20:31
为什么不在复制之前判断呢?
作者: feng199
时间: 2008-5-22 20:41
都可以,就是不知道该怎么处理?
作者: HAT
时间: 2008-5-22 20:43
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 |
|
作者: feng199
时间: 2008-5-22 21:25
谢谢您!很多命令我都不理解.但我会慢慢消化的。
能不能先告诉我怎么用法?
作者: HAT
时间: 2008-5-22 21:30
@echo off
for %%a in (C:\test\*.txt) do echo 文件%%a的大小是:%%~zaB