M626
Programmer
- Mar 13, 2002
- 299
Is there a way I can check if a Directry is empty
"C:\Test\"
If empty then delete "C:\Test\"
Thanks,
"C:\Test\"
If empty then delete "C:\Test\"
Thanks,
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub RemoveIfEmpty()
MyFile = Dir("c:\test\*.*")
If Len(MyFile) = 0 Then
RmDir ("c:\test")
End If
End Sub