日期:2014-05-17 浏览次数:20917 次
ToolStripMenuItem a = (ToolStripMenuItem)sender;
FileInfo file = new FileInfo(a.Tag.ToString());
Shell shell = new Shell();
Folder folder = shell.NameSpace(file.DirectoryName);
FolderItem folderItem = folder.ParseName(file.Name);
foreach (FolderItemVerb Fib in folderItem.Verbs())
{
if (Fib.Name == a.Text)
{
Fib.DoIt();
break;
}
}