Option Explicit
Dim fso As FileSystemObject
Private Sub Command1_Click()
Set fso = New FileSystemObject
fso.OpenTextFile "c:\1.htm", ForReading
If fso.FileExists("c:\1.htm") Then
MsgBox "exists"
Else
MsgBox "Doesn't exists"
End If...
'Remember To add Reference to Microsoft Scripting Runtime
'in references
'Author:Sachin
Option Explicit
Dim fso As FileSystemObject
Private Sub Command1_Click()
Set fso = New FileSystemObject
fso.OpenTextFile "c:\1.htm", ForReading
If fso.FileExists("c:\1.htm") Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.