Question : Problem Passing a Parameter When Launching a Program With VB Script

I have very limited knowledge with VB script, and seem to have a very simple problem I can not figure out. I am needing to pass three parameters to the program I am trying to launch
1:
 \uid:8 \fac:0 \pass: 


I have the script checking to see if the program is running and if it is not then it launches the .exe which is what I need to pass the parameters too. Here is my script:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
 Dim strComputer, strList
Dim wshShell
 
strComputer = "."

DQ = Chr(34)

Set wshShell = CreateObject("Wscript.Shell")

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcesses = objWMIService.ExecQuery _
( "Select * from Win32_Process Where Name = 'fusiondictate.exe'" )

If colProcesses.Count = 0 Then
        wshShell.run DQ & "C:\Program Files (x86)\Fusion Dictate 10\fusiondictate.exe" & DQ, True

Else

        'Do Nothing

End If 


I have tried several different ways of adding the parameters and it keeps erroring out.

I appreciate any help!

Answer : Problem Passing a Parameter When Launching a Program With VB Script

Clearing the users Internet Explorer history fixed the problem.
Random Solutions  
 
programming4us programming4us