Checking the presence of file in your system
Checking the presence of file in your system
Rate Checking the presence of file in your system
(2(2 Vote))
'Make a reference to a Microsoft Scripting Runtime Library
Public sub Form_Load()
Dim fso As New FileSystemObject
If fso.FileExists("D:\test.txt") Then
MsgBox "File Exist", vbInformation
Else
MsgBox "File not exist", vbInformation
End If
End Sub
'This program checks whether the file test.txt exists in the "D:" drive
Checking the presence of file in your system Comments
No comments yet — be the first to post one!
Post a Comment