Skip to main content

Problem:

What functions are supplied with Net Express that allow an application to establsih if a file exists within a given path and then also what functions allow you to delete it?

Resolution:

There are 2 routines supplied with Net Express that can check\\delete files in given paths - including paths that contains spaces.

Please note that these functions do not work against paths that contain wildcard characters.

The first function is CBL_CHECK_FILE_EXIST - this checks whether a file exists and returns details if it does.

The other is CBL_DELETE_FILE

Both routines are fully documented in the Net Express help.

It is recommended when specifying the path concerned that it is enclosed in quotes so as to ensure that the spaces in the folder names are accepted.

Old KB# 7114