Thursday, 17 January 2013

Check If File Exists using VB Script

Check If File Exists using VB Script

Public Function  IfFileExist (sFilePath)
On Error Resume Next
    Set filesys = CreateObject("Scripting.FileSystemObject")
         If filesys.FileExists(sFilePath)="False" Then
     IfFileExist ="False"
    Else
       IfFileExist="True"
     End If
End Function

1 comment:

  1. I have a great fun reading your blogs.Thank you for making this beautiful and awesome blogs. Hope to read more post from you in the future. Please dont forget to visit me in my site @ www.imarksweb.org. Thank you.

    ReplyDelete