Kepware Knowledge Base: Solution
How to Replace the KEPServerEX V5 Runtime Project Without Using the Configuration Client
Last Update: 11/12/2018
A user-supplied project can be placed into the common application directory on the server and named "project.opf" or "project.xml". When the Runtime is started or reinitialized, the following will occur:
- A backup will be created of the existing "default.opf" file when Project Backups are enabled. To access this setting, right-click on the Administration icon located in the System Tray and select Settings. Then, open the Runtime Options tab.
- The user-supplied project will be saved as the new Runtime project.
- Upon successful Runtime project replacement, the user-supplied file will be deleted.
Note: The Runtime project will not be replaced when a configuration client with write permissions is connected to the Runtime or when the Runtime demo has expired.
Common Application Directory examples are as follows:
- Vista: C:\ProgramData\Kepware\KEPServerEX\V5
- XP: C:\Documents and Settings\All Users\Application Data\Kepware\KEPServerEX\V5
A batch file example is as follows:
cd\
cd Programs Files\Kepware\KEPServerEX 5
net stop "KEPServerEXV5"
REM: cd\ (LOCATION OF PROJECT TO PLACE INTO RUNTIME)\project
copy C:\project.opf C:\ProgramData\Kepware\KEPServerEX\V5\*.*
net start "KEPServerEXV5"
©
2021
PTC Inc. All Rights Reserved.