diff --git a/NoFences/Model/FenceEntry.cs b/NoFences/Model/FenceEntry.cs index c842719..6fb6616 100644 --- a/NoFences/Model/FenceEntry.cs +++ b/NoFences/Model/FenceEntry.cs @@ -53,10 +53,15 @@ public void Open() // start asynchronously try { - if (Type == EntryType.File) - Process.Start(Path); - else if (Type == EntryType.Folder) - Process.Start("explorer.exe", Path); + ProcessStartInfo psi = new ProcessStartInfo(); + psi.FileName = Path; + psi.WorkingDirectory = System.IO.Path.GetDirectoryName(Path); + if (Type == EntryType.Folder) + { + psi.Arguments = Path; + psi.FileName = "explorer.exe"; + } + Process.Start(psi); } catch (Exception e) {