). To generate a list of all existing files in a specific directory, proceed as follows: The first time that you call the Dir function, specify the complete search path for the files, for example, &quot; D:\Files\*.sxw &quot; .
要检查文件是否存在，请输入完整的文件路径和名称。如果文件或目录的名称不存在，Dir 函数将返回一个零长度字符串 ( &quot; &quot; )。