|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『楼 主』:
[已结]关于if扩展中的LSS EQU等比较。
使用 LLM 解释/回答一下
if 20070323 LSS 20070423 @Echo good!!
这样一个简单的命令,但是就是不会输出 good!字符,看了一下帮助,string1 LSS string2 好像LSS只是比较字符串的,那如果我要比较两个数字的话,该怎么做呢?,搜索了一下坛子,好像没有关于这个的帖子,还请高手解答,谢谢啦。
Last edited by HAT on 2008-11-16 at 12:39 ]
if 20070323 LSS 20070423 @Echo good!!
Such a simple command, but it just doesn't output the "good!" character. I looked at the help, and string1 LSS string2 seems to only compare strings. Then, if I want to compare two numbers, how should I do it? I searched the forum, but there seems to be no post about this. Please ask the expert to help, thank you.
Last edited by HAT on 2008-11-16 at 12:39 ]
|
|
2007-5-1 03:05 |
|
|
dikex
高级用户
    潜水修练批处理
积分 788
发帖 366
注册 2006-12-31
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
那句代码我这里可以输出good!!
That code can output good!! here for me.
|
|
2007-5-1 03:20 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
咦,怪了,单独运行是可以的,但是放到bat文件里就不行了,郁闷。有高手解答吗?
Hey, strange. Running it alone is okay, but putting it in a bat file doesn't work.郁闷. Is there any expert to answer?
|
|
2007-5-1 03:24 |
|
|
dikex
高级用户
    潜水修练批处理
积分 788
发帖 366
注册 2006-12-31
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我就是保存为bat文件运行的……
I just saved it as a bat file and ran it...
|
|
2007-5-1 03:31 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
xp下可以,2000下不行,郁闷
It works under XP, but not under 2000. It's frustrating.
|
|
2007-5-1 03:31 |
|
|
ansipeter
中级用户
   替身
积分 269
发帖 130
注册 2007-3-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
可能2000把他当做日期处理了,把LSS换成GTR试试,如果现实GOOD,说明他是以日期的方式处理的,如果错误再找其他原因,我没有2000,所以没法测试
Maybe 2000 is treating it as a date. Try replacing LSS with GTR. If it shows GOOD, it means it's handling it as a date. If there's an error, look for other reasons. I don't have 2000, so I can't test.
|
|
2007-5-1 03:39 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
我说错了,上面的语句是可以的,但是我实际上想比较的是这样的:
if 20070323000000 LSS 20070423000000 @Echo good!!
在日期格式后面还有6个0,是某个软件生成的log,格式是日期+6个0,如上,这个时候没法比较大小,我测试过,好像最高只支持10位。再高就不能比较了。。。
I made a mistake. The above statement is okay, but actually what I want to compare is like this:
if 20070323000000 LSS 20070423000000 @Echo good!!
There are 6 zeros after the date format. It's a log generated by some software, in the format of date + 6 zeros, as above. At this time, it can't be compared in size. I have tested, it seems that it only supports up to 10 digits. Higher than that can't be compared...
|
|
2007-5-1 03:39 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
这么大的数字P处理中不能用于比较或者计算,超出范围了
Such a large number is being processed by P and cannot be used for comparison or calculation, exceeding the range.
|
|
2007-5-1 03:44 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
嗯,我想也是,一开始判断错误,以为是LSS判断的问题,谢谢楼上的各位。
Well, I think so too. I made a wrong judgment at first, thinking it was a problem with LSS judgment. Thanks to everyone above.
|
|
2007-5-1 03:46 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
你将那六个零去掉不就行了
Can't you just remove those six zeros?
|
|
2007-5-1 03:46 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
批处理能直接处理的数值范围是 -2147483648~2147483647 。
Last edited by lxmxn on 2007-4-30 at 06:47 PM ]
The numerical range that batch processing can directly handle is -2147483648 to 2147483647.
Last edited by lxmxn on 2007-4-30 at 06:47 PM ]
|
|
2007-5-1 04:40 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
|
2007-5-1 05:22 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
哇塞,谢谢斑竹。刚发现这个论坛,想不到回复这么迅速~~
Wow, thank you, moderator. Just discovered this forum, didn't expect such quick replies~~
|
|
2007-5-1 05:39 |
|
|
jashonx
初级用户
  铂金会员
积分 44
发帖 21
注册 2007-4-15
状态 离线
|
『第 14 楼』:
请教
使用 LLM 解释/回答一下
关于批处理中的数值比较 命令 像:lss equ 等,能详细的给我说说吗?
About the numerical comparison commands in batch processing, like lss, equ, etc. Can you give me a detailed explanation?
|
|
2007-6-20 15:14 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by jashonx at 2007-6-20 15:14:
关于批处理中的数值比较 命令 像:lss equ 等,能详细的给我说说吗?
看看if /?
Originally posted by jashonx at 2007-6-20 15:14:
About numerical comparison commands in batch processing, like lss, equ, etc. Can you tell me in detail?
Check if /?
|

 |
|
2007-6-20 15:23 |
|