Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive Remove Directory
Message
From
10/12/1999 21:12:41
 
 
To
10/12/1999 20:34:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302015
Message ID:
00302141
Views:
36
>Ed, you're on the right track, but not quite! The DeleteFolder method of the Scripting.FileSystemObject deletes the folder in any case, whether there are files/subfolders in it or not. So, no need for recursion.
>

As you point out, nd as previously pointed ou by Ken Weber, you're 100% correct - the VBScript version 5 is reliably recursive, so my code is completel unneeded, unless you only want selective deletions to be done. My mistake for not staying current!

>Aren't these Scripting objects wonderful? :)
>

Absolutely! On top of the WSH objects and Shell.Object, I'm really looking forward to ADSI and the WMI. It should make administration and network tasks infinitely easier, and will depend less on ones ability to exploit the API directly.

My installs now incorporate the WSH as a matter of course - it's just too valuable to do without. I'm thinking seriously of adding Dino Esposito's WSHKit to the mix.
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