vuFolderExists(PathName)
vuFolderExists(*CSTRING), Signed
Description
Checks if a specified folder (path) exists. Supports mapped drives and UNC paths.
Parameters
| Parameter |
Data Type |
Description |
| PathName |
CSTRING(1024) |
Fully qualified name of the folder to test |
Returns
Nonzero (True) if the folder exists, 0 (False) if it does not. Test for nonzero rather than comparing with the literal value 1.
Example
PathName = 'C:\Valutilities\Temp'
IF vuFolderExists(PathName) <> 0
MESSAGE('Folder exists!')
ELSE
MESSAGE('Folder not found.')
END