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

Click here to load this message in the networking platform