Access Citect Process via CMD.exe

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, 

Parents
  • 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.

  • Brilliant thanks Patrick!
    Exactly what I was after. 

Reply Children
No Data