I would like to check file exists in the same folder where is my program. If is do something. How i can fix that ?
private void button12_Click(object sender, EventArgs e)
{
if (File.Exists(Path.GetDirectoryName(Application.ExecutablePath) + "tres.xml"))
Upload("tres.xml");
}