Help needed with VB Script to delete folder and all files.
I need a VBScript that will check if a folder exists and if so delete it and all its contents. I have a VBScript that will do it for a singe file and i am not sure ho to convert it so it will delete a folder and all its contents. THis is what i hav....
Call DeleteIfFound ("C:\Documents and Settings\All Users\Start Menu\Programs\Web Design\Macromedia\Macromedia Contribute 3.lnk")
Function DeleteIfFound (FilePath)
Set Fso = CreateObject ("Scripting.FileSystemObject")
If Fso.FileExists (FilePath) Then
Set Fso = Nothing
Basically I have a RIS image and it contains software that is not site licensed, i don't want to create a nother image just for that. So I just want to dlete the folder and shortcuts from the 'all users' menu.