![]() |
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-25 23:14 |
47,812 topics / 349,910 posts / today 0 new / 48,264 members |
| 意见反馈 & 网友交流 » Make the batch file loop infinitely |
| Printable Version 3,140 / 10 |
| Floor1 hngaoshou | Posted 2007-01-30 10:27 |
| 社区乞丐 Posts 77 Credits -16 | |
|
This can make your batch file loop infinitely.
It's very simple. First, write your command well, and then add a %0 in the next line. Try it yourself. TMD, I have to set 1000 points to read a post. You can kill me! I just created the account. I don't know if his is more professional. Good things should be shared! Oh... ─────────────────── Moderation Record ─────────────────── Performed by: namejm Description: This post was moved from DOS Batch & Script Technology (Batch Processing Room) ─────────────────── Moderation Record ─────────────────── [ Last edited by namejm on 2007-2-1 at 09:17 PM ] |
|
| Floor2 zh159 | Posted 2007-01-30 10:29 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
The moderator has said:
Originally posted by namejm at 2007-1-27 20:01: |
|
| Floor3 electronixtar | Posted 2007-01-30 10:39 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
Hehe, in this way, the thread starter can't come in anymore |
|
| Floor4 hngaoshou | Posted 2007-01-30 10:39 |
| 社区乞丐 Posts 77 Credits -16 | |
|
This can make your batch file loop infinitely.
Very simple. First, put your command well, then add a %0 on the next line. Try it yourself. TMD I have to set 1000 points to read a post. You can kill me. I just created an account. I don't know if his is more professional. Good things should be shared! 靠....... |
|
| Floor5 NaturalJ0 | Posted 2007-01-30 21:25 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
Take it easy, upstairs. I have over 900 points, and you have more than a dozen points. It's not worth getting so worked up. People don't owe you anything.
|
|
| Floor6 ccwan | Posted 2007-01-30 21:47 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
The issue of points is a form of consensus in the network, but it still has flaws. Does a newly registered member with a low score necessarily have low level?
But we should see that most people come with a curious mentality. Many don't even read the basic requirements of the forum and the member code of conduct. Such people are very likely to cause losses due to misusing code or cause losses to others, which is what none of us want to see. There's no denying that members with high points have been in the forum for a longer time, know the rules more, and are less likely to cause harm. Everyone should understand the good intentions of the moderators. There are many things to learn, isn't that right? |
|
| Floor7 songlynn | Posted 2007-01-30 22:24 |
| 新手上路 Posts 2 Credits 4 | |
|
Why does adding it allow an infinite loop?
|
|
| Floor8 namejm | Posted 2007-01-30 23:07 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
RE hngaoshou:
First of all, his code is much more ruthless than your idea, and the harmfulness is quite great. From the current understanding, the system cannot be ended from the infinite loop without forcibly restarting the system. Second, your idea is indeed an idea of an infinite loop. Members who have stayed in this forum for a longer time should all know this idea, but it is just that no one has specifically posted about it because it is relatively easy. A major feature of this forum is the maximum openness of resources. Plus, the point limit is mainly considering the harmfulness of the code, to prevent members who do not understand the power of that code from making a big mistake due to carelessness. As a technical forum with a quite high level, it will not be boring to add a 1000-point point limit to a simple post. In view of the fact that your post contains components for giving opinions, and you have made two times of less considered repeated contents in this post, among which there are uncivil remarks, I will lock this post and move it to the "Opinion Feedback & User Communication" area after one day. |
|
| Floor9 qinshi52 | Posted 2007-04-22 09:30 |
| 新手上路 Posts 1 Credits 2 | |
|
Understand!!Understand!!Understand!!Understand!!Understand!!Understand!!Understand!!Understand!!Understand!!
|
|
| Floor10 flyinspace | Posted 2007-04-23 11:26 |
| 银牌会员 Posts 517 Credits 1,206 | |
|
%0 represents itself.
-------------------------------------------------------------- When it comes to loops, I also remember that I once did a few silly things. At that time, although I knew the function of &, I didn't think that & could also play a role in echo. There was a file backup.bat recorded. Because there was a sentence in it. echo Thank you for using, & backup As a result, this script was called infinitely. Later, I found out that it could be like this... I also remember that because I didn't use the del command well. I deleted all the things on the C drive. |
|
| Floor11 lxmxn | Posted 2007-04-23 13:27 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Swe sweat...
Sympathize. I remember once I used the rd command to delete all the movies I downloaded, they were gone without even watching, and I was depressed for several days... |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |