Good day,
I have a process that needs to start for every client via citrix. I
created a batch file:
*************************
start "DO NOT CLOSE" /min waveengine.exe --debug "M:\Documents and
Settings\All Users\Application Data"
cd\
cd "M:\Program Files\Twisted Pair Solutions\WAVE\DispatchCommunicator\
WAVEDispatchCommunicator.exe
***************************
When I run the above via citrix, it will open a dos box and then kick
off the application. The problem is that the dos box doesn't go away
"hince "do not close" title bar.
i tried the following script:
****************************
Const HIDDEN_WINDOW = 12
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = HIDDEN_WINDOW
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn = objProcess.Create("waveengine.exe",null,objconfig,
intProcessID)
*******************************
This looks like its going to work but fails. Reason I believe its
failing is the waveengine.exe needs to look at
--debug "M:\Documents and Settings\All Users\Application Data"
-------see batch file above----
How do I add this line?
Also when the application WAVEDispatchCommunicator.exe
is closed would need waveengine.exe process to stop.
I am so green at this Vb stuff.
Thanks for your time.