Skip to main content

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);
}

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); }

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);
}
Source Link

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); }