Jul 17, 2001 #1 jorgemc Programmer Jun 4, 2001 3 PT How I can know if a folder is empty with VB 6.0? Thks JorgeMC Sorry about my bad english. Jorge Carvalho From the Sun of Portugal
How I can know if a folder is empty with VB 6.0? Thks JorgeMC Sorry about my bad english. Jorge Carvalho From the Sun of Portugal
Jul 17, 2001 #2 woyler Programmer Jun 20, 2001 678 US Dim sFilePath as String sFilePath = 'Folder you want to search If FileExists(sFilePath & "*.*" Then MsgBox "File exists." else MsgBox "No files Found." End if Public Function FileExists(strPath As String) As Integer FileExists = Not (Dir(strPath) = "" End Function Upvote 0 Downvote
Dim sFilePath as String sFilePath = 'Folder you want to search If FileExists(sFilePath & "*.*" Then MsgBox "File exists." else MsgBox "No files Found." End if Public Function FileExists(strPath As String) As Integer FileExists = Not (Dir(strPath) = "" End Function
Jul 17, 2001 1 Thread starter #3 jorgemc Programmer Jun 4, 2001 3 PT Tks. The problem is solved. Sorry about my bad english. Jorge Carvalho From the Sun of Portugal Upvote 0 Downvote