I would like to have a button in our PAC Display Project to close one project and open another. It seems the easiest way to do this is to use the Launch application button to run a windows batch file:
taskkill /f /IM DisplayR.pro.exe
cd C:\Program Files (x86)\Opto22\PAC Project 10.2
start DisplayR.pro.exe “C:\mypath\myprojectname.UUI” 1
What bothers me is that I have to use the /f (force) option on taskkill otherwise the application does not close (it does not even pop up the window “Do you really want to exit PAC Display Runtime” like Alt-F4 does). Does anyone have any further insight or experience with this and if using taskkill /f causes corruption of log files or any other issues?