Hi everyone,
The IT of the customer needs to close PcVue without enter in PcVue.
The goal is to close it without confirm dialog box and force to kill it via a Taskkill /f.
If we can do like the verb SCADA System("exit") but outside of PcVue, it will target the need.
Thanks for your answers.
Manu
Hi Manu,
Trick of the Month!
To disable the 'Confirm Dialog' you must start PcVue with the option -noprompt.
Also, I don't recommend stopping PcVue using TaskKill as it is too violent.
It is easy to code a .Net program that sends a stop command to PcVue.
Here is the basic code in VB.Net
Sub StopPcVue()
Dim p() As System.Diagnostics.Process
p = System.Diagnostics.Process.GetProcessesByName("sv32")
p(0).CloseMainWindow()
p(0).WaitForExit()
End Sub
Thank you Nico,
the combinaison with the trick -noprompt + the .exe developed by one of my colleague work perfectly!
So if it can help someone, I share this little development in attached file
Manu


