How to close the 2 instances of word Docx files normally rather killing it abruptly?

Using kill process(winword.exe) is killing the application abruptly and leaving behind the .tmp files(unwanted).
Any alternative to close more than one instance of the same word application normally in one go ?

Hi
Usually when KILL PROCESS with ProcessName property as “WINWORD” it will close them with no tmp files left behind

Cheers @Aakash07

Hi buddy,
Temp files are getting left behind.
PFA the attached screenshot for the reference.

1 Like

Hmm usually it won’t leave like that and using Kill Process Activity atlast of the sequence will help us on this

Fine if we are closing at the middle, we can delete those file types be using just three activities
—use a assign activity and mention like this
Arr_files = Directory.GetFiles(“yourfolderpath”,”*.tmp”)
Where Arr_files is a variable of type array of string
—now use a FOR EACH activity and pass the above variable as input and change the type argument as string
—inside the loop use a DELETE FILE activity and mention the input as item.ToString this will delete all the tmp files in that folder

Cheers @Aakash07