Funzione FileExists
Determina se un file o una cartella è disponibile nel supporto dati.
Sintassi:
FileExists(FileName As String | DirectoryName As String)
Valore restituito:
Bool
Parametri:
FileName (NomeFile) | DirectoryName (NomeCartella): stringa che specifica un file in modo univoco. In alternativa, potete usare una notazione URL.
Esempio:
Sub ExampleFileExists
MsgBox FileExists("C:\autoexec.bat")
MsgBox FileExists("file:///d|/bookmark.htm")
MsgBox FileExists("file:///d|/Private")
End Sub