I've always been Caicai.
Regarding the original poster's thread, its idea is to apply the idea of VBS mixed programming to the HTML language, but everyone's knowledge is not as broad as the original poster's (like I'm not a computer major, now I only know BAT, but I'm eager to learn!).
Just give a random example of mixed programming to express the idea of the original poster's thread (I only know a little VBS):
' 2>nul 3>nul&@echo off&cls
'&start wscript.exe /nologo /e:vbs %0&exit
createobject("sapi.spvoice").speak("ger lee shir joan gwaur DOS lieng merng")
msgbox "这里是中国DOS联盟!",,"Welcome"
Original thread:
http://www.cn-dos.net/forum/viewthread.php?tid=39082&fpage=1&highlight=
The only difference from this thread is that this thread uses mshta to interpret the bat code as HTML language, I don't know if the original poster, what I said is correct?
Simplify the original poster's code to facilitate everyone's understanding of the idea:
:<!--
@rem /* ---------- bat code part ------------------------
@echo off
echo Write any code here,
echo The following will start HTML
pause
::-----------The following sentence interprets the bat code as HTML language,
start mshta %0
exit::Remember to exit cmd
rem ------------------------------------------------ */
Learn and use immediately: (I just learned from the original poster's thread)
In HTML language, the comment is <!-- ..(can be line-wrapped)... -->
From this, it can be seen that when mshta interprets this bat code, the part from the first sentence to the following sentence is skipped.
From this, this code has a big advantage compared with <%0 more +? >tmp.html in that there is no temporary file generated.
-->
<!--This sentence (that is, the following script sentence) is used to clear the first line (hey, I've learned how to clear the first line of HTML statements again)
Let me explain why this sentence is added
If there is no colon at the beginning of the first sentence, the bat will directly jump out due to a syntax error,
After adding it, when mshta reads the code, the first : will remain, and in order to throw it away, the following sentence is needed
--------All the above are HTML comments-------The following are the genuine HTML statements------->
<script>document.body.innerText=""</script>
<body onkeypress=window.close()>
<hr color=red>
<marquee><font color=green>HTML Codes</font></marquee>
<hr color=red>
[
Last edited by plp626 on 2008-4-28 at 07:36 PM ]
山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~
空间~~
cmd学习