diff --git a/ContextMenuManager/BulePointLilac.Methods/ObjectPath.cs b/ContextMenuManager/BulePointLilac.Methods/ObjectPath.cs index 775b4a9..4ef7ca8 100644 --- a/ContextMenuManager/BulePointLilac.Methods/ObjectPath.cs +++ b/ContextMenuManager/BulePointLilac.Methods/ObjectPath.cs @@ -12,12 +12,7 @@ namespace BulePointLilac.Methods /// 路径类型 public enum PathType { File, Directory, Registry } - private static readonly List EnvironmentDirectorys = new List { - @"%SystemRoot%\System32", - @"%SystemRoot%", - @"%SystemRoot%\System32\WindowsPowerShell\v1.0" - }; - + private static readonly string[] EnvironmentDirectorys = { @"%SystemRoot%\System32", @"%SystemRoot%" }; private const string RegAppPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"; private const string RegLastPath = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit";