Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete folder...API
Message
From
14/11/1998 23:43:08
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00157368
Message ID:
00157713
Views:
19
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform