Automating Creo Shutdown
Hi everyone,
I'm working on automating a process using a batch file that will be triggered as a scheduled task. The steps I'm trying to automate are as follows:
1- Launch Creo Parametric (version 10.0.7.0)
2- Start a tool that interacts with Creo to run it automatically in the background.
3- Shut down the configurator.
4- Shut down Creo itself.
Parts 2 and 3 are not a problem: this tool was developed by our consultants using the Creo toolkit. It's simply a matter of invoking one batch file to start it and another to stop it. The issue is with the shutdown of Creo. I don't want to use a brute-force taskkill command to close Creo, as I'd prefer a more graceful and proper way to do it. I considered simulating keyboard shortcuts (such as Alt+F+X) to close the program, using either VBScript or AutoHotkey, but here's the catch: since this task will be running as a scheduled task, with no user logged in, none of these solutions will work because they require the UI to be accessible (i.e., user must be logged in).
Does anyone have suggestions or ideas for an approach that would work in this scenario, where the task is running without an active user session? Unfortunately, we do not have a license for the Creo toolkit, so solutions that rely on it are not an option for us.
Any help or guidance would be very much appreciated.
Thanks in advance!
Giacomo

