Dec 16, 2003 #1 T theberzerker69 New member Joined Dec 16, 2003 Messages 2 How do you check to see if a file exists or not?
Dec 16, 2003 #2 dynamic_sysop Well-known member Joined Oct 1, 2002 Messages 1,039 Location Ashby, Leicestershire. Code: If IO.File.Exists("your files path here including extension ") Then MessageBox.Show("It Exists!") End If
Code: If IO.File.Exists("your files path here including extension ") Then MessageBox.Show("It Exists!") End If
Jan 14, 2009 #3 J j_vijaydaniel New member Joined Jan 14, 2009 Messages 4 use this code.. add namespace.. using System.IO; if (File.Exists(filename)) { MessageBox.Show("True"); } else { MessageBox.Show("False"); }
use this code.. add namespace.. using System.IO; if (File.Exists(filename)) { MessageBox.Show("True"); } else { MessageBox.Show("False"); }