diff --git a/ExtractionTool/Program.cs b/ExtractionTool/Program.cs index eabc5a7b..4a09cd8a 100644 --- a/ExtractionTool/Program.cs +++ b/ExtractionTool/Program.cs @@ -42,6 +42,8 @@ namespace ExtractionTool /// Enable including debug information private static void ExtractPath(string path, string outputDirectory, bool includeDebug) { + // Normalize by getting the full path + path = Path.GetFullPath(path); Console.WriteLine($"Checking possible path: {path}"); // Check if the file or directory exists diff --git a/ProtectionScan/Program.cs b/ProtectionScan/Program.cs index 45967da8..4f478d88 100644 --- a/ProtectionScan/Program.cs +++ b/ProtectionScan/Program.cs @@ -53,6 +53,9 @@ namespace ProtectionScan /// File or directory path private static void GetAndWriteProtections(Scanner scanner, string path) { + // Normalize by getting the full path + path = Path.GetFullPath(path); + // An invalid path can't be scanned if (!Directory.Exists(path) && !File.Exists(path)) {