diff --git a/Wox.Infrastructure/WindowsShellRun.cs b/Wox.Infrastructure/WindowsShellRun.cs index 038448c76b..fa5f4fb78d 100644 --- a/Wox.Infrastructure/WindowsShellRun.cs +++ b/Wox.Infrastructure/WindowsShellRun.cs @@ -205,7 +205,7 @@ namespace Wox.Infrastructure // there might be args in that command args = PathGetArgs(cmd); if (args != null) - cmd = cmd.Substring(0, cmd.Length - args.Length); + cmd = cmd.Substring(0, cmd.Length - args.Length - 1); } else args = null;