Valide sur les plates-formes NetWare, Symbian OS, UNIX, Windows et Windows CE
La fonction ExistDir ou ExistDirectory vérifie si un répertoire existe.
Format de la fonction :
ExistDir(pathname as String) as Boolean
ExistDirectory(pathname as String) as Boolean
Identifie le chemin du répertoire.
Si le répertoire existe, la fonction renvoie True ; dans le cas contraire, elle renvoie False.
Exemple :
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 © 2014 CA Technologies.
Tous droits réservés.
|
|