IBM Lotus Symphony


FileExists 函数 [运行时]

确定文件或目录在数据介质上是否可用。

语法:

FileExists(FileName As String | DirectoryName As String)

返回值:

布尔值

参数:

FileName | DirectoryName:包含明确的文件规范的任何字符串表达式。您也可以使用 URL 表示法

错误代码

5 无效的过程调用

示例:

sub ExampleFileExists

msgbox FileExists("C:\autoexec.bat")

msgbox FileExists("file:///d|/bookmark.htm")

msgbox FileExists("file:///d|/private")

end sub


产品反馈 | 其他文档 | 商标