String vbsCode = "MsgBox(\"\"Hello, World!\"\",VBOKOnly,\"\"Info\"\")" OKDialog("Visual Basic script:\n\n" + vbsCode ) String callString = "mshta vbscript:Execute(\"" + vbsCode + "(window.close)\")" OKDialog("Command send to Windows:\n\n" + callString ) // Launching asynchronously. DM script continues and ends immediately LaunchExternalProcessAsync( callString )