fileexists - Vb

file

Snippet Code


  
Rate this page :
  [ 0 votes]

To check whether a file exists or not

Private Sub Form_Load() Dim x As String x = InputBox("Enter File Directory") If Dir$("x") <> "" Then MsgBox ("The file exists") Else MsgBox ("The file does not exist") End If End Sub

Tags


Ask Questions

Ask Question