Close All Open File Explorer Windows

Hi all,

Is there a recommended means to close all open File Explorer windows?

Part of my workflow involves moving a directory (using Invoke Method), however the Invoke Method returns an error if the users happens to be “in” the directory in File Explorer.

Therefore, I’d like to close all File Explorer windows at the beginning of the workflow. I’ve tried using the Close Application activity, which does seem to work, except that it also shuts down the taskbar and turns the screen black!

Thanks in advance.


This might help.
test2.xaml (10.2 KB)



How about this

  1. send hot key Alt+F4
  2. repeat until shutdown screen appears(I’m using windows 10)
  3. use image exist to come out of loop .