![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-11-24 12:34 |
47,820 topics / 349,938 posts / today 0 new / 48,298 members |
| DOS批处理 & 脚本技术(批处理室) » Been racking my brains, finding the largest number in Notepad |
| Printable Version 2,539 / 17 |
| Floor16 dragonamd | Posted 2008-08-23 15:19 |
| 中级用户 Posts 100 Credits 209 | |
|
pusofalse, your code really works well. But if later I want to define something other than starting with 5, what should I do? Right now it is 5-
If it's the letter H- in the code above, which part should be changed? |
|
| Floor17 pusofalse | Posted 2008-08-23 15:31 |
| 银牌会员 Posts 646 Credits 1,604 | |
|
Change if "!var:~,1!" equ "5" (
to if "!var:~,1!" equ "H" ( If case does not matter if /i "!var:~,1!" equ "h" ( |
|
| Floor18 dragonamd | Posted 2008-08-23 15:41 |
| 中级用户 Posts 100 Credits 209 | |
|
How come it looks like just changing one H did it!!! I'm too much of a newbie, I'll study hard. If I want the minimum value, then what? I mean displaying 2 at the same time, one minimum and one maximum
Tried it on a 100MB text file, core CPU Q6600, it takes half an hour hehe [ Last edited by dragonamd on 2008-8-23 at 03:52 PM ] |
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |