With Windows 10 having changed the name of the Explorer window: if ((itemName == "Windows Explorer") || (itemName == "File Explorer")) { itemType.InvokeMember("Refresh", System.Reflection.BindingFlags.InvokeMethod, null, item, null); }
if ((itemName == "Windows Explorer") || (itemName == "File Explorer")) {
itemType.InvokeMember("Refresh", System.Reflection.BindingFlags.InvokeMethod, null, item, null);
}