什么是%0 |%0,它是如何工作的? [英] What is %0|%0 and how does it work?

查看:918
本文介绍了什么是%0 |%0,它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您运行包含%0 |%0 的.bat或.cmd文件,您的计算机开始使用大量内存,几分钟后重新启动。为什么这个代码阻止你的Windows?这个代码在程序上做了什么?

If you run a .bat or .cmd file with %0|%0 inside, your computer starts to use a lot of memory and after several minutes, is restarted. Why does this code block your Windows? And what does this code programmatically do? Could it be considered a "bug"?

推荐答案

%0 当前正在执行的批处理文件的名称。只需执行以下操作的批处理文件:

%0 is the name of the currently executing batch file. A batch file that simply does:

%0|%0

将递归地永久执行,快速创建许多进程并减慢系统速度。

Is going to recursively execute itself forever, quickly creating many processes and slowing the system down.

不是Windows中的错误,它只是一个非常愚蠢的事情在一个批处理文件。

This is not a bug in windows, it is just a very stupid thing to do in a batch file.

这篇关于什么是%0 |%0,它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆