打开调用的dll所在的目录
2015-03-22 10:01:47 访问(1534) 赞(0) 踩(0)
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void toolStripMenuItem_打开程序所在目录_Click(object sender, EventArgs e)
{
try
{
Assembly ass = this.GetType().Assembly;
FileInfo theInfo = new FileInfo(ass.Location);
System.Diagnostics.Process.Start("explorer.exe", theInfo.Directory.FullName);
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
}
上一条:
下一条:
相关评论
发表评论