I want to run a vbs command from command line as I would in batch calling
cmd.exe /c "echo.Hello World! & pause"
Obviously this doesn't work
wscript /C MsgBox("Hello world")
I could print the vbs and then call the temporary file and then delete it
cmd.exe /c "echo. [VBSCODE] > temp.vbs & wscript temp.vbs & del temp.vbs"
but this is too messy, and I don't want the prompt poping up.
This works directly on the command line:
mshta vbscript:Execute("MsgBox(""Message"",64,""Title"")(window.close)")
also for several commands:
mshta vbscript:Execute("MsgBox ""Message"",64,""Title"":MsgBox ""Hello again!"",64,""Hello"":close")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With