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.
Cette fonction présente le format suivant :
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 : Fonction ExistDirectory
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.
Tous droits réservés.
|
|