We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2370ee7 commit 3729a41Copy full SHA for 3729a41
2 files changed
src/App/Utils/CommandLineParser.cs
@@ -1,4 +1,5 @@
1
using System.IO;
2
+using ShowWhatProcessLocksFile.LockFinding.Utils;
3
4
namespace ShowWhatProcessLocksFile.Utils;
5
@@ -23,7 +24,7 @@ public static string GetFileFullName()
23
24
throw new Exception($"'{args[1]}' doesn't exist");
25
}
26
- return args[1];
27
+ return PathUtils.ToCanonicalPath(args[1]);
28
29
30
private static bool Exists(string path)
src/App/Utils/Elevation.cs
@@ -9,6 +9,9 @@ internal static class Elevation
9
{
10
public static void RestartAsAdmin(string path)
11
12
+ // some of `\` signs can be interpreted as escape sequences.
13
+ path = path.Replace("\\", "/");
14
+
15
new Process
16
17
StartInfo = new ProcessStartInfo(Assembly.GetExecutingAssembly().Location, $"\"{path}\"")
0 commit comments