diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowDataFilesCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowDataFilesCommand.cs index a233d5881..714e54a5a 100644 --- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowDataFilesCommand.cs +++ b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowDataFilesCommand.cs @@ -20,7 +20,12 @@ public ShowDataFilesCommand() /// The command arguments. public override void Handle(IMonitor monitor, string command, ArgumentParser args) { - Process.Start(Constants.DataPath); + Process.Start(new ProcessStartInfo + { + FileName = Constants.DataPath, + UseShellExecute = true + }); + monitor.Log($"OK, opening {Constants.DataPath}.", LogLevel.Info); } } diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowGameFilesCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowGameFilesCommand.cs index 745b821ba..74bdc0d44 100644 --- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowGameFilesCommand.cs +++ b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Other/ShowGameFilesCommand.cs @@ -20,7 +20,12 @@ public ShowGameFilesCommand() /// The command arguments. public override void Handle(IMonitor monitor, string command, ArgumentParser args) { - Process.Start(Constants.GamePath); + Process.Start(new ProcessStartInfo + { + FileName = Constants.GamePath, + UseShellExecute = true + }); + monitor.Log($"OK, opening {Constants.GamePath}.", LogLevel.Info); } }