C:\WINDOWS\system32\msvidctl.dll\2
public static string ExtractTypeLibPath(string path) { Regex regex = new Regex(@"^.*\\\d+$", RegexOptions.IgnorePatternWhitespace | RegexOptions.Multiline | RegexOptions.IgnoreCase); if (regex.IsMatch(path)) { return path.Substring(0, path.LastIndexOf("\\")); } return path; }