Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove sub-directory programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00482991
Message ID:
00483317
Vues:
11
>just fyi, i tried the dos command - deltree c:\jobname\tempsdir. it works without asking to empty the dir first.

I think that the reason that this is occurring is that VFP's RD probably maps to the same function that the DOS RD command does, rather than DELTREE. However, if you have access to the Windows Script Host, the Scripting.FileSystemObject can do the same thing as the DOS DELTREE command.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder("c:\jobname\tempsdir")
oFolder.Delete
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform