Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the windows scripting engine
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00357135
Message ID:
00357265
Views:
15
>I want to use the windows scripting engine to delete directorys. I don't want to use RD because then I have to delete all the files first. So I have the code working:
>
>lofs = CreateObject("Scripting.FileSystemObject")
>lofs.deletefolder(lcDirectory)
>
>and it works fine.
>
>Is there anything else I should be aware of. Specifically do I need to install anything on the clients machine to make sure this code runs?

The WSH must be present - while it's built into Win2K, and version 1 into Win98, Win95 and WinNT 4 require it to be added via IE, or preferably through the self-installing executable available from the MS site in my sig block.
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
Reply
Map
View

Click here to load this message in the networking platform