>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement