Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete folder...API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157368
Message ID:
00157444
Vues:
17
Hi Maurice,

This can be done very quickly using the Windows Scripting Host. On machines that have WSH installed, this can be done in one fell swoop in VFP:
FSO = CreateObject("Scripting.FileSystemObject")

if FSO.FolderExists("d:\moo")
  FSO.DeleteFolder("d:\moo")
endif
Windows 98 has WSH built in. You can download it for other machines at: Microsoft Windows Scripting Host


>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.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform