Lotusscript判断文件是否存在

Lotusscript判断文件是否存在
1、使用Dir:  
If   Dir$(dirName,   ATTR_DIRECTORY)   =   ""   Then  
  'Directory   does   not   exist  
Else  
  'Directory   does   exist  
End   If  
2、使用FileSystemObject:  
Set   objFSO   =   CreateObject("Scripting.FileSystemObject")  
   
If   objFSO.FolderExists(dirName)   Then  
  'Directory   does   exist  
Else  
  'Directory   does   not   exist  
End   If

你可能感兴趣的:(Lotusscript判断文件是否存在)