Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete folder...API
Message
De
14/11/1998 23:43:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157368
Message ID:
00157713
Vues:
18
>Maurice,
>
>As another alternative you can use ShellExecute() to launch the DOS deltree command. Using DOS external commands requires the right switch settings though. There are examples on my website at Q&A, General, Article qGEN010
>
>>Is there an API delete function? If so, what is the syntax in VFP5.0?
>>
>>How do I programmatically delete a folder or directory and all recursive folders automatically without deleting files (del *.*) and then removing subdirectories (RD 'subdirectory')?
>>
>>I would like to simulate the effect of the right mouse click and delete the folder.

A caveat, Deltree is not in nt cmd console.

It is easy enough (if slower) to program in foxpro adir() or sys(2000) to recurse through the directory tree and delete all files and remove all directories.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform