|
wwwchn
新手上路

积分 12
发帖 6
注册 2007-3-21
状态 离线
|
|
2008-1-10 12:18 |
|
|
satanism
新手上路

积分 4
发帖 2
注册 2008-1-11
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
头大了 还是先去看8楼推举的文章
Headache. Still, go and read the article recommended on floor 8 first
|
|
2008-1-11 12:10 |
|
|
kgdetg1127
初级用户
 
积分 158
发帖 89
注册 2007-4-25
状态 离线
|
|
2008-1-25 23:06 |
|
|
windowsxphao
初级用户
 
积分 25
发帖 14
注册 2006-11-2
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
对我等新手太有用了,我顶
It's really useful for newbies like us, I'm upvoting
|
|
2008-2-21 11:36 |
|
|
hhjsir
新手上路

积分 7
发帖 5
注册 2008-2-14 来自 beijing
状态 离线
|
|
2008-2-21 15:54 |
|
|
ccc812
新手上路

积分 2
发帖 1
注册 2008-2-21
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
楼主在文中提到"另外,FOR 变量参照的替换已被增强。您现在可以使用下列选项语法:
~I - 删除任何引号("),扩充 %I
%~fI - 将 %I 扩充到一个完全合格的路径名
%~dI - 仅将 %I 扩充到一个驱动器号
%~pI - 仅将 %I 扩充到一个路径
%~nI - 仅将 %I 扩充到一个文件名
%~xI - 仅将 %I 扩充到一个文件扩展名
%~sI - 扩充的路径只含有短名
%~aI - 将 %I 扩充到文件的文件属性
%~tI - 将 %I 扩充到文件的日期/时间
%~zI - 将 %I 扩充到文件的大小
%~$PATH:I - 查找列在路径环境变量的目录,并将 %I 扩充到找到的第一个完全合格的名称。如果环境变量未被定义,或者没有找到文件,此组合键会扩充空字符串可以组合修饰符来得到多重结果:
%~dpI - 仅将 %I 扩充到一个驱动器号和路径
%~nxI - 仅将 %I 扩充到一个文件名和扩展名
%~fsI - 仅将 %I 扩充到一个带有短名的完整路径名
%~dp$PATH:i - 查找列在路径环境变量的目录,并将 %I 扩充到找到的第一个驱动器号和路径。
%~ftzaI - 将 %I 扩充到类似输出线路的 DIR ....."
请问像"%~fI "这些是如何具体应用的?能否举一个简单的例子说明一下?还有这句看得不太明白:"FOR /F "eol=; tokens=2,3* delims=, " %i in (myfile.txt) do command会分析 myfile.txt 中的每一行,忽略以分号打头的那些行,将每行中的第二个和第三个符号传递给 for 程序体;用逗号和/或空格定界符号。"其中"忽略以分号打头的那些行"是用哪个参数"忽略"的?"eol=;"和delims=,的作用是什么?
请搂住或各位高手解释一下~~~
The building-block mentioned that "In addition, the replacement of FOR variable references has been enhanced. You can now use the following option syntax:
~I - Remove any quotes (") and expand %I
%~fI - Expand %I to a fully qualified pathname
%~dI - Expand %I to just a drive letter
%~pI - Expand %I to just a path
%~nI - Expand %I to just a file name
%~xI - Expand %I to just a file extension
%~sI - The expanded path contains only short names
%~aI - Expand %I to the file attributes of the file
%~tI - Expand %I to the date/time of the file
%~zI - Expand %I to the size of the file
%~$PATH:I - Find the directories listed in the path environment variable and expand %I to the first fully qualified name found. If the environment variable is not defined or the file is not found, this combination expands to an empty string. Modifiers can be combined to get multiple results:
%~dpI - Expand %I to just a drive letter and path
%~nxI - Expand %I to just a file name and extension
%~fsI - Expand %I to a full pathname with short names
%~dp$PATH:i - Find the directories listed in the path environment variable and expand %I to the first drive letter and path found.
%~ftzaI - Expand %I to a DIR.....like output line"
How are things like "%~fI" applied specifically? Can you give a simple example to illustrate? Also, I don't quite understand this sentence: "FOR /F "eol=; tokens=2,3* delims=, " %i in (myfile.txt) do command will analyze each line in myfile.txt, ignore those lines starting with a semicolon, pass the second and third tokens of each line to the for program body; delimited by commas and/or spaces." Among them, which parameter "ignores" "ignore those lines starting with a semicolon"? What are the functions of "eol=;" and delims=,?
Please the building-block or各位 experts explain~~~
|
|
2008-2-24 00:37 |
|
|
jipinshangren
初级用户
 
积分 120
发帖 62
注册 2008-4-11 来自 四川内江
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
看来还是试一试好了,我想应该会更容易懂,呵呵!谢谢班主!
Well, let's just give it a try. I think it should be easier to understand, hehe! Thanks, forum moderator!
|
|
2008-4-11 11:12 |
|
|
nacydu2008
新手上路

积分 0
发帖 2
注册 2008-12-1
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
还是有很多地方不明白,慢慢消化吧
There are still many places I don't understand, I'll digest it slowly
|
|
2008-12-19 11:11 |
|