|
fengzhigu
新手上路

积分 1
发帖 1
注册 2006-10-23
状态 离线
|
『第 16 楼』:
wo ding
使用 LLM 解释/回答一下
虽然不怎么看得懂,不过还是先支持你了吧!
Although I don't understand it very well, I'll support you first!
|
|
2006-10-24 10:30 |
|
|
kingchain
初级用户
 
积分 133
发帖 57
注册 2006-3-15
状态 离线
|
|
2006-10-26 01:38 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
还有很多呢。。
~I - 删除任何引号("),扩充 %I
%~fI - 将 %I 扩充到一个完全合格的路径名
%~dI - 仅将 %I 扩充到一个驱动器号
%~pI - 仅将 %I 扩充到一个路径
%~nI - 仅将 %I 扩充到一个文件名
%~xI - 仅将 %I 扩充到一个文件扩展名
%~sI - 扩充的路径只含有短名
%~aI - 将 %I 扩充到文件的文件属性
%~tI - 将 %I 扩充到文件的日期/时间
%~zI - 将 %I 扩充到文件的大小
There are many more...
~I - Remove any quotes ("), 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's file attributes
%~tI - Expand %I to the file's date/time
%~zI - Expand %I to the file's size
|
|
2006-10-26 09:22 |
|
|
hymm2008
初级用户
 
积分 102
发帖 43
注册 2006-9-7
状态 离线
|
|
2006-10-28 02:58 |
|
|
yeliuyuexue
新手上路

积分 13
发帖 7
注册 2006-10-18
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
有没有初学者的教程?还没接触过的DOC的那级菜鸟的
Is there a tutorial for beginners? For those noobs who haven't come into contact with DOC yet
|
|
2006-10-28 06:55 |
|
|
13579974928
新手上路

积分 6
发帖 3
注册 2006-10-28
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
好东西呀,正需要!!!
Great stuff! Exactly what I need!!!
|
|
2006-10-30 07:10 |
|
|
nokia4321
初级用户
 
积分 37
发帖 22
注册 2006-11-11
状态 离线
|
|
2006-11-16 04:27 |
|
|
wto90111
新手上路

积分 2
发帖 1
注册 2006-10-21 来自 adfadf
状态 离线
|
|
2006-11-16 13:39 |
|
|
hxuan999
中级用户
   DOS之日
积分 337
发帖 161
注册 2006-11-4
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
%n, %%i, %i这类的变量都可以用这些拓展的方法.并且可以组合使用.比如:
%~nx0 可以列出文件的全名,含扩展名.
%%~ftzaI 这个显示出的样子就和我们执行DIR出来的样子差不多.
另外:还可以查找一个文件是否存在.比如:
%1的内容为 "aaa.txt"
那么echo %~f$PATH:1就可以在%PATH%这个环境变量里所设置的目录下查找文件"aaa.txt",如果找到就按我们指定的内容显示出来,这里指定了f,就会显示出找到的文件的完全合格的路径名. 如果没找到返回一个空串.
%n, %%i, %i and other variables can all be used with these extended methods. And they can be combined. For example:
%~nx0 can list the full name of the file, including the extension.
%%~ftzaI looks like what we get when we execute DIR.
In addition: You can also check if a file exists. For example:
If the content of %1 is "aaa.txt"
Then echo %~f$PATH:1 can search for the file "aaa.txt" in the directories set in the %PATH% environment variable. If found, it will display the fully qualified path name of the found file as specified here (f is specified). If not found, it returns an empty string.
|

for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul |
|
2006-11-17 06:28 |
|