|
netchxing
初级用户
 
积分 58
发帖 31
注册 2007-1-6 来自 重庆
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
5楼的讲的很明白啊,我们菜鸟一看就明白
What the person on the 5th floor said is very clear. Novices like us can understand it at a glance.
|
|
2007-2-14 09:05 |
|
|
hxmupdata
初级用户
 
积分 76
发帖 39
注册 2007-3-9
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
问的好,答的更好。加分加的好 ,学了不少了。。。。
Well asked, well answered. Well added points, learned a lot...
|

狐狸喜欢狡猾。。 |
|
2007-3-13 02:22 |
|
|
jackyggt
初级用户
 
积分 76
发帖 38
注册 2007-3-13
状态 离线
|
|
2007-3-13 08:21 |
|
|
Billunique
中级用户
   菜鸟总动员
积分 259
发帖 112
注册 2006-8-28
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
关于扩展名的判断很受学习 多谢前辈!
The judgment about file extensions is very helpful for learning. Thanks a lot, senior!
|
|
2007-3-21 07:23 |
|
|
fd2000
初级用户
 
积分 24
发帖 11
注册 2007-3-30
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
Originally posted by 0401 at 2007-1-20 02:13 PM:
HoHo~我比较适合回答这种基础题目
关于问题一你自己动手试试就知道了。
第一句本意就是想将变量a置空,所以等号右边当然什么都没有了。 ...
0401是个不错的老师,很有耐心,值得我们学习,就是有的学生上课不仔细听。呵呵。
Originally posted by 0401 at 2007-1-20 02:13 PM:
HoHo~ I'm more suitable for answering such basic questions
For question one, you can find out by doing it yourself.
The first sentence originally means to set variable a to empty, so there should be nothing on the right side of the equal sign...
0401 is a good teacher, very patient, worthy of our learning, but some students don't listen carefully in class. Hehe.
|
|
2007-4-2 08:27 |
|
|
myth126
初级用户
 
积分 47
发帖 16
注册 2007-4-2
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
下面这段代码怎么理解呀?好多特殊符号的用法,请叫各位了!先行谢过!
setlocal enabledelayedexpansion
for %%i in ("%tmp%\encrypt.tmp") do (
echo %%~zi >nul 2>nul
set size=%%~zi
set num=!size:~-1!
set /a mod=!num!%%2
if !mod! equ 0 (goto even) else (goto odd)
)
How to understand this code? There are many special symbol usages. Please ask everyone! Thank you in advance!
setlocal enabledelayedexpansion
for %%i in ("%tmp%\encrypt.tmp") do (
echo %%~zi >nul 2>nul
set size=%%~zi
set num=!size:~-1!
set /a mod=!num!%%2
if !mod! equ 0 (goto even) else (goto odd)
)
|
|
2007-4-2 10:11 |
|
|
jz1043
新手上路

积分 6
发帖 3
注册 2007-4-6
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
我也学到东西了,谢谢讲解
I also learned something, thanks for the explanation
|
|
2007-4-9 05:41 |
|
|
fyb198351
初级用户
 
积分 24
发帖 12
注册 2007-4-13
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
学了不少的东西~~~~
Learned quite a lot of things~~~~
|
|
2007-4-17 07:31 |
|
|
Vampire
初级用户
 
积分 176
发帖 78
注册 2007-4-15
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
Originally posted by myth126 at 2007-4-1 09:11 PM:
下面这段代码怎么理解呀?好多特殊符号的用法,请叫各位了!先行谢过!
setlocal enabledelayedexpansion
for %%i in ("%tmp%\encrypt.tmp") do (
echo %%~zi >nul 2&g ...
希望高手回答下,我也有些不懂,大概第三行echo %%~zi >nul 2>nul不晓得啥意思。
Originally posted by myth126 at 2007-4-1 09:11 PM:
How to understand the following code? There are many special symbols used. Please ask everyone! Thank you in advance!
setlocal enabledelayedexpansion
for %%i in ("%tmp%\encrypt.tmp") do (
echo %%~zi >nul 2&g ...
Hope experts can answer. I also don't understand. Probably the third line echo %%~zi >nul 2>nul I don't know what it means.
|
|
2007-4-18 07:48 |
|
|
mtiankong
初级用户
 
积分 70
发帖 38
注册 2007-3-24
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
Originally posted by Vampire at 2007-4-17 06:48 PM:
希望高手回答下,我也有些不懂,大概第三行echo %%~zi >nul 2>nul不晓得啥意思。
大概意思就是不显示%i的文件大小,出现错误也不显示。
Originally posted by Vampire at 2007-4-17 06:48 PM:
Hope the experts can answer, I also have some doubts. Probably the third line echo %%~zi >nul 2>nul I don't know what it means.
Probably it means not to display the file size of %i, and also not to display errors.
|
|
2007-4-18 09:37 |
|
|
qiwei201
新手上路

积分 13
发帖 7
注册 2007-3-11
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
学习了,我又学到一些东西
Learned, I've learned some more things
|
|
2007-4-20 00:14 |
|
|
htysm
高级用户
   
积分 866
发帖 415
注册 2005-12-4
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
将变量%%i扩展到文件的大小。for /?中有说明:
带有修改程序的变量 说明
%~I 展开删除任何前后引号 ("") 的 %I。
%~fI 将 %I 展开到完全合格的路径名。
%~dI 只将 %I 展开到驱动器号。
%~pI 只将 %I 展开到路径。
%~nI 只将 %I 展开到文件名。
%~xI 只将 %I 展开到文件扩展名。
%~sI 展开路径以只包含短名称。
%~aI 将 %I 展开到文件的文件属性。
%~tI 将 %I 展开到文件的日期和时间。
%~zI 将 %I 展开到文件大小。
%~$PATH:I 搜索 PATH 环境变量所列出的目录,并将 %I 展开到第一个找到的完全合格的名称。如果没有定义环境变量名称,或搜索没有找到文件,则此修改程序扩展成空字符串。
下表列出可用来获得综合结果的修改程序组合。
变量(使用组合的修改程序) 说明
%~dpI 只将 %I 展开到驱动器号和路径。
%~nxI 只将 %I 展开到文件名和扩展名。
%~fsI 将 %I 展开到只包含短名称的完整路径名。
%~dp$PATH:I 在 PATH 环境变量中所列出的目录中搜索 %I,并展开到第一个找到结果的驱动器号和路径。
%~ftzaI 将 %I 展开到输出行(如 dir一样)。
Expand variable %%i to the file size. There is an explanation in for /?:
Variables with modifiers Description
%~I Expand %I with any quotes ("") around it removed.
%~fI Expand %I to the fully qualified pathname.
%~dI Expand %I to just the drive letter.
%~pI Expand %I to just the path.
%~nI Expand %I to just the file name.
%~xI Expand %I to just the file extension.
%~sI Expand the path to contain only the short name.
%~aI Expand %I to the file's file attributes.
%~tI Expand %I to the file's date and time.
%~zI Expand %I to the file size.
%~$PATH:I Search the directories listed in the PATH environment variable and expand %I to the first fully qualified name found. If the environment variable name is not defined or the file is not found during the search, this modifier expands to an empty string.
The following table lists modifier combinations that can be used to obtain composite results.
Variable (using combined modifiers) Description
%~dpI Expand %I to just the drive letter and path.
%~nxI Expand %I to just the file name and extension.
%~fsI Expand %I to the full pathname containing only the short name.
%~dp$PATH:I Search for %I in the directories listed in the PATH environment variable and expand to the drive letter and path of the first found result.
%~ftzaI Expand %I to an output line (like dir).
|

欢迎你到批处理爱好者联盟QQ群:18023953 |
|
2007-4-20 00:55 |
|
|
ccuu668
初级用户
 
积分 57
发帖 29
注册 2006-12-27
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
比较适合我们这些新手.不过说实话有的地方我都还看不懂到底是什么意思.唉!只有自己慢慢来了.
再次我也特别感谢一楼的GG,你真的是一比较热心的网友.精神值得我们去学习.
It is quite suitable for us beginners. But to be honest, there are some places I still don't understand what they mean. Alas! I can only take it slowly. Once again, I especially thank the GG on the first floor. You are really a very enthusiastic netizen. Your spirit is worthy of our learning.
|
|
2007-5-2 16:01 |
|
|
yunsenjhl
新手上路

积分 18
发帖 8
注册 2007-6-24
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
5分钟以前刚刚有些理解set的用途
Just had some understanding of the use of set just now in 5 minutes
|
|
2007-7-10 22:19 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
只有把 set 命令弄懂了, 才能写出好的东西.
Only when you understand the set command thoroughly can you write good things.
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-7-11 17:42 |
|