更新时间:2023-01-08 16:03:59
为什么不运行它,看看自己?我救了你的脚本称为foo.bat一个批处理文件,我改变了你妈妈上大学前有一个回声
。
Why not just run it and see for yourself? I saved your script to a batch file called foo.bat, and I changed the Your mom goes to college to have an echo
in front.
C:\temp>foo
C:\temp>ECHO It's for my college fund.
It's for my college fund.
C:\temp>CALL :OMGSUB
C:\temp>echo Your mom goes to college.
Your mom goes to college.
C:\temp>GOTO:eof
C:\temp>ECHO *runs away and cries like a little girl*
*runs away and cries like a little girl*
C:\temp>echo Your mom goes to college.
Your mom goes to college.
C:\temp>GOTO:eof
C:\temp>
所以很容易地看到,经过了 OMGSUB
被调用,它
CALL:OMGSUB
和回声的逃跑行CALL :OMGSUB
and echos the "runs away" line