请给我讲解一下下边的cmd批处理代码的意思贝!

来源:百度知道 编辑:UC知道 时间:2024/05/26 02:07:55
@echo oFF
if "%1" neq "1" (
>"%temp%\tmp.vbs" echo set WshShell = WScript.CreateObject^(^"WScript.Shell^"^)
>>"%temp%\tmp.vbs" echo WshShell.Run chr^(34^) ^& %0 ^& chr^(34^) ^& ^" 1^",0
start /d "%temp%" tmp.vbs
exit
)

@echo oFF
【关闭回显】
if "%1" neq "1" (
如果【文件名不等于1】
>"%temp%\tmp.vbs" echo set WshShell = WScript.CreateObject^(^"WScript.Shell^"^)
将【set WshShell = WScript.CreateObject("WScript.Shell")】内容写入【%temp%\tmp.vbs】文件
>>"%temp%\tmp.vbs" echo WshShell.Run chr^(34^) ^& %0 ^& chr^(34^) ^& ^" 1^",0
将【WshShell.Run chr(34) & "C:\Documents and Settings\Administrator\桌面\这里是你的批处理文件名" & chr(34) & " 1",0 】内容写入【%temp%\tmp.vbs】文件
start /d "%temp%" tmp.vbs
运行【%temp%" tmp.vbs】这个文件
exit
【结束这个批处理】
)

提示:运行这个批处理后能造成一个死循环....