I am trying to run a exe with parameters from a VB script. I tried writing it using a bat file but it does not close the dos prompt window so I am trying to rewrite it using VB script. It works if I do not specify any parameters for the exe to run. But i need it to run with the parameters. Not sure how to get it to run with the parameters. I need it to execute the exe then close the script. Here is my script.
Code:
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set wshShell = WScript.CreateObject ("WSCript.shell") wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe -dsmplugin MSRC4Plugin.dsm -listen 5900"""
Comment