Function Reference


_WinAPI_FileExists

Tests whether the specified path is existing file

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

Parameters

$sFilePath The path to the file to test.

Return Value

Success: 1 - The path is an existing file.
Failure: 0.

Remarks

The function sets the @extended flag to 1 if the specified path is an existing directory (not a file).

Example

#include <WinAPIFiles.au3>

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