Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete folder...API
Message
De
13/11/1998 20:29:14
 
 
À
13/11/1998 19:29:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157368
Message ID:
00157615
Vues:
18
>You can use SHFileOperation Win32 API function. But it's not very easy to use it from VFP.
>

There's the automation object Scripting.FileSystemObject available, but that requires the installation of the Windows Scripting Host (the provider is SCRRUN.DLL.) it's actually pretty straightforward to use, but WSH has to be required; it's a part of WIn98, NT 5 beta, and is installed with NT 4.0's Option pack. There's a self-installing executable available on Microsoft's Web site that will allow it to be added to WIn95 and WinNT 4.0 without the Option Pack.

>Vlad
>
>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform