string PathofFile = Application.StartupPath + "\\" + Application.ProductName;
if (File.Exists(PathofFile) == true)
{
MessageBox.Show("adf");
}
else
{
MessageBox.Show("adsfsafsafsaf");
}
if (File.Exists(PathofFile) == true)
{
MessageBox.Show("adf");
}
else
{
MessageBox.Show("adsfsafsafsaf");
}
自己找自己找不到?
string PathofFile = Application.StartupPath + "\\" + Application.ProductName+".exe";