Applies to:PcVue version 7.00 onwards | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Summary:This article describes how to restart a PcVue project by using the executable “SvRestart.exe”. An attached project, made with version 8.2 of PcVue, purposes 3 ways to launch this executable in a multi-station environment:
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Note:The executable “SvRestart.exe” is a program originally compiled with Framework 1.1. From PcVue version 8.2, Framework 1.1 is no longer used by PcVue and a new version of “SvRestart.exe” compiled with Framework 2.0 has been created.From PcVue version 11.0, PcVue installs Framework 4.5, which does not contain Framework 2.0. For installations without Framework 2.0, a new version of SvRestart.exe, compiled with Framework 4.0, has been produced.
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Details:Once launched, SvRestart.exe waits that PcVue stops, and then restarts another program according to arguments.SvRestart.exe needs some arguments to be correctly executed. Command line: [PathSvRestart]svrestart.exe [ProcessId] “[PcVueExePath]” “ [PcVueArguments]” “[MessageToDisplay]”
Important: If quotes are needed in an argument (for path included space char), use the character | (pipe) Example of command line: C:\PcVue Projects\USR\DEMO_SVRESTART\Tp\SvRestart.exe 2592 “C:\PCVUE\PcVue 8.2\bin\sv32.exe” “-b |C:\PcVue Projects| -p |DEMO_SVRESTART| -r” “Restart Project DEMO_SVRESTART” |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Solution (demo project with svrestart.exe in Project TP directory)To find the PcVue ProcessId, an API can be used: GetCurrentProcessId
|
Created on: 23 Dec 2010 Last update: 14 Oct 2024