FileExists
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:41 PM

Syntax

 Public Function FileExists(FileName As String) As Boolean

Description

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