public static string BrowseFolder(ref string Caption = "", ref string InitialFolder = "") { Shell32.Shell SH = null; Shell32.Folder F = null; SH = new Shell32.Shell(); F = SH.BrowseForFolder(0, Caption, BIF_RETURNONLYFSDIRS, InitialFolder); if ((F != null)) { return(F.Items().Item().Path); } }