 <p>I had to use this code to check if the file exist or not.</p> <pre><code>Dim currentPath As String = System.IO.Path.Combine(IO.Directory.GetCurrentDirectory(), Textbox1.Text) If IO.File.Exists(currentPath) Then ..Do something here Else MsgBox("Executable doesn't exist!", vbOKOnly, "Error!") End If </code></pre>