Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE
The ExistDir or ExistDirectory function checks if a directory exists.
This function has the format:
ExistDir(pathname as String) as Boolean
ExistDirectory(pathname as String) as Boolean
Identifies the directory path.
If the directory exists, the function returns TRUE; otherwise, it returns FALSE.
Example: ExistDirectory function
HELP_GETFILEATTRIBUTES
If Not(ExistDirectory("c:\backup")) then CreateDirectory("c:\backup")
CopyFile("c:\autoexec.bat", "c:\backup\autoexec.bat")
RenameFile("c:\backup\autoexec.bat", "c:\backup\autoexec.bak")
|
Copyright © 2013 CA.
All rights reserved.
|
|