I was trying to open and close an application. I tried like this:
Dim App1 Set App1 = CreateObject(\"WScript.Shell\") App1.Run(\"firefox\") App1.Quit
Good work for this example:
Dim oShell : Set oShell = CreateObject("WScript.Shell") oShell.Run """C:\My_Scripts\ddl.exe"" -p1 -c" 'some code oShell.Run "taskkill /f /im ddl.exe", , True