![]() |
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-08-02 23:52 |
48,038 topics / 350,123 posts / today 1 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Problems with counting |
| Printable Version 2,255 / 22 |
| Floor1 scriptor | Posted 2007-01-01 12:11 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
How to write a batch script that automatically remembers the number of times it has run?
|
|
| Floor2 youxi01 | Posted 2007-01-01 12:32 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
Write the number of runs into a file or the registry
|
|
| Floor3 scriptor | Posted 2007-01-01 12:46 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Can't it be implemented in P without rewriting the registry and without additional files?
|
|
| Floor4 youxi01 | Posted 2007-01-01 12:53 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
Of course it's also possible, but it's a bit more troublesome
|
|
| Floor5 scriptor | Posted 2007-01-01 13:11 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Then please post the code. Thanks
|
|
| Floor6 zh159 | Posted 2007-01-01 16:25 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
The last line of the batch processing must be an empty line
1、The simplest way is to add in the batch processing: Calculate the number of ":" 2、Display the current running times: |
|
| Floor7 scriptor | Posted 2007-01-02 01:07 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Many Thanks Happy New Year |
|
| Floor8 scriptor | Posted 2007-01-02 01:09 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
It has been debugged. It's very good. But I still need to study it. I haven't looked at the code carefully yet. Thanks first.
|
|
| Floor9 scriptor | Posted 2007-01-07 02:28 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
There is a problem with that code? Can only remember to 2, and then always 2, who will solve it?
|
|
| Floor10 jmz573515 | Posted 2007-01-07 04:55 |
| 银牌会员 Posts 464 Credits 1,212 | |
|
Is it possible to write one with VBS? Blame me for being ignorant, sweat~~
[ Last edited by jmz573515 on 2007-1-22 at 10:16 PM ] |
|
| Floor11 scriptor | Posted 2007-01-07 04:59 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
waw...
Here comes another VBS one Hehe...... Okay, thank you. |
|
| Floor12 scriptor | Posted 2007-01-07 05:00 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Can we can solve this problem only in BAT format? Thanks
|
|
| Floor13 namejm | Posted 2007-01-07 05:18 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
Demonstration code:
|
|
| Floor14 scriptor | Posted 2007-01-07 05:37 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
What I want is not this situation. What I mean is that every time it runs, it counts once. How to achieve it? Only using bat
|
|
| Floor15 dikex | Posted 2007-01-07 05:43 |
| 高级用户 Posts 366 Credits 788 | |
|
echo content >> batch file itself
Just use this The principle is roughly like this, if you are interested, you can make some corrections and so on [ Last edited by dikex on 2007-1-6 at 04:45 PM ] |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |