Refresh Windows Explorer in Win7

前端 未结 4 1348
野性不改
野性不改 2020-12-09 04:13

My program sets \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" value \"Hidden\". Hovewer I\'m not able to refresh the e

4条回答
  •  青春惊慌失措
    2020-12-09 04:38

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

提交回复
热议问题