It supports command-line arguments and can receive the JS and VBS methods. Look at the example (test at the command line):
Js:
Copy Code code as follows:
Mshta vbscript:window.execScript ("alert (' Hello world! ');", "JavaScript")
VBS:
Copy Code code as follows:
Mshta javascript:window.execScript ("MsgBox" (' Hello world! '): Window.close "," VBS ")
Call VBS, using the MsgBox function and the Popup method, respectively:
Copy Code code as follows:
Mshta Vbscript:msgbox ("It's time to work, man!", 64, "hint") (Window.close)
Mshta vbscript:createobject ("Wscript.Shell"). Popup ("It's time to work, man!") ", 7," hint "," (Window.close)
The Execute method has a single statement that rounds two information boxes:
Copy Code code as follows:
Mshta Vbscript:execute ("MsgBox" "One Box" ": MsgBox" "Two Box" ": Window.close")
LZ they get, call the system's English reading:
Copy Code code as follows:
Mshta vbscript:createobject ("Sapi.spvoice"). Speak ("Good luck") (Window.close)