Search

Check The File Exists Or Not

Articles

Use this function to find if a file exists in the given path.

Syntax

Check The File Exists Or Not (filename)

Parameters

Input Parameter Name Description
filename Path of the file

Returns

Return value Description
True/False Returns True if the given file is present, False if the given file is not present.

Sample

Check The File Exists Or Not (C:\Invoice.pdf) = True

  • Checks if the file ‘Invoice.pdf’ exists in the path ‘C:\Invoice.pdf’ and returns ‘True’ if the file is present.

To view all the File functions, click here.

Did you find what you were looking for?