I have a task that runs a program every 10 minutes to scan a directory, convert .doc to .pdf and relocate them to a different directory.
Unfortunately, the program cannot handle large amounts of winword.exe
processes so it often stops in progress. When this happens, the .doc files continue to build and I have to manually move files so it's a bit time-consuming.
I wrote an exe (C:\Windows\System32\cmd.exe /k task kill /IM winword.exe /F
) and dropped on the desktop. I use this to kill all winword.exe
processes so it clears the system after I stop the Task, and restart the task again afterwards.
Essentially, just trying to use one function to END a task, run a script to kill winword.exe
processes, and RUN a task once the processes are killed but not sure what function would be best to do this.
Thanks for any advice.