Hi All,
Wondering if it is possible to access any Citect processes from the command line?
Use Case: would be recompiling / rebooting IOServer / Client using macro pad.
Cheers,
Hi All,
Wondering if it is possible to access any Citect processes from the command line?
Use Case: would be recompiling / rebooting IOServer / Client using macro pad.
Cheers,
For recompiling a project you could call CtCmp32.exe.
For restarting Citect / rebooting a machine I did not find a working command line tool, but in the past I've built something like this:
- Create a Citect event that calls a cicode function say every 5 seconds
- In the cicode function, using the function FileExist(), check for the existence of a dummy file in a certain folder, like "Restart.txt"
- If found then delete the dummy file and call the Shutdown() function with parameters that fit the behavior you want.
- To restart your application, just place an empty text file called Restart.txt in the folder your application is monitoring, and within 5 seconds Citect will restart.
Hi Thomas, I'm pretty sure I've explored this before, and I'm pretty sure you could use either CMD or powershell to achieve it. For example you can get the PID of it using something like tasklist /v | find "IOServer". You can then capture the arguments that Citect32 uses to start that process, and you can stop it and start it similarly using command line.
This is the answer for an interactively run Citect system at least. I'll caveat this by saying that it'll come with a degree of risk and complication which you need to own. Good luck!