%~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