I have an application that I need to run with various switches via VBSCRIPT and it launches the cmd window but does not seem to run the executable. This executable takes a few minutes to finish the process that it does and the window immediately closes and the programs says it is done. The part of the code that executes the file is:
Any help would be greatly appreciated.
Code:
Set objShell = WScript.CreateObject("WScript.Shell")
strcommand = "CHFARM /joinfarm /ddsc:SERVERNAMEHERE /zone:ZONENAMEHERE/odbcuser:UIDHERE/odbcpwd:PASSWORDHERE/dsnfile:c:\program files\Citrix\Independent Management Architecture\MF20.dsn /quiet"
objshell.run(strcommand)
Any help would be greatly appreciated.