My brother was a little upset with Windows XP because it no longer allowed him to call Explorer with parameters such as "c:\win*\sys*" like in the good old Win95 days. So I wrote him this little app to allow him to do it. And because it's so damn simple I thought I'd convert it to .NET. So here is a C# version
using System; using System.IO; using System.Diagnostics; namespace ExploreXP { class Class { [STAThread] static void Main(string[] args) { string[] LSplitPath; if (Environment.GetCommandLineArgs().Length > 1) LSplitPath = Environment.GetCommandLineArgs()[1].Split(new char[]{'\\'}); else LSplitPath = new string[0]; string LCurrentDir = ""; if (LSplitPath.Length > 0) { LCurrentDir = LSplitPath[0]; for (int Loop = 1; Loop < LSplitPath.Length; Loop++) { string [] matches = Directory.GetDirectories(LCurrentDir + "\\", LSplitPath[Loop]); if (matches.Length > 0) { LCurrentDir = matches[0]; } } } Process.Start("explorer", LCurrentDir); } } }