Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Folder has no file
Message
De
13/07/2012 09:02:10
 
 
À
13/07/2012 08:54:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01548475
Message ID:
01548477
Vues:
80
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform