Knowledgebase:
FileExists
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 16 July 2017 02:03 PM

Syntax

Public Function FileExists(FileName As String) As Boolean

This function is used to check if a given file exists or not.

Parameters

Key Description 
FileName Path and name of file to be checked if exist or not, value of type String 

Return value

Returns true if the file exists, otherwise, returns false.

Sample

sub main()

    if FileExists("VtlWorld.txt") then

         AlertMessage("File Already exist")

    else

         AlertMessage("File not found")

    End if 

End Sub



See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions