>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.