Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Folder has no file
Message
From
13/07/2012 09:02:10
 
 
To
13/07/2012 08:54:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01548475
Message ID:
01548477
Views:
78
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform