From 053843d43ecc24f2d328a3b16ce66da813a2691a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E7=82=B9lilac?= Date: Wed, 30 Dec 2020 23:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ContextMenuManager/BulePointLilac.Methods/ObjectPath.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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";