Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does RmDir return anything?
Message
 
À
08/12/2008 12:02:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01365987
Message ID:
01366001
Vues:
9
>Background: I need to create and remove directories in a temp folder. Creating and removing is NOT the problem
>
>The problem comes in if someone is sitting in the directory to be removed. VFP cannot remove the directory and I'd like to catch that and report it.
>
>Question: does RmDir return anything? Since it's VFP 6, no Try..Catch block :-(, and if I have to do the whole "Save Error Routine, On Error, Reset back to old Error", I will - I was just hoping that it returned something I could catch easily.
>
>Thanks
DECLARE integer RemoveDirectory IN WIN32API STRING

IF RemoveDirectory([C:\test]) == 0
   MessageBox([Can not remove the folder])
ENDIF
Not tested properly!
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform