If adir(laDummy,'c:\backup1\*.*')<1
Messagebox('No files')
Else
copy file c:\backup1\*.* to c:\backup2\*.*
Endif
>I'm using
>
>copy file c:\backup1\*.* to c:\backup2\*.*
>
>
>but if no file in c:\backup1, I will get 'File c:\backup1\*.* does not exist' error.
>how can I detect if the folder doesn't have any file?
>
>Thanks for the help
>
>regards,
>
>Jerry