>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.