UDF > WinAPIEx > Files & Devices > Files >


_WinAPI_FileExists

Teste si le nom complet spécifié est un fichier existant

#include <WinAPIFiles.au3>
_WinAPI_FileExists ( $sFilePath )

Paramètre

$sFilePath Le chemin d'accès au fichier à tester.

Valeur de retour

Succès: Retourne 1 - Le chemin est un fichier existant.
Échec: Retourne 0.

Remarque

La fonction définit @extended à 1 si le chemin d'accès spécifié est un répertoire existant (pas un fichier).

Exemple

#include <WinAPIFiles.au3>

ConsoleWrite(@ScriptName & 'exists : ' & _WinAPI_FileExists(@ScriptFullPath) & @CRLF)