does anyone have script that will delete folder on the hd.... i'm using the below script...
but it gives me permission denied error... so is there way i can delete this ??? thanks

Set objFSO = CreateObject("Scripting.FileSystemObject")
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Is it really a folder underneath C:\ (root)? Could it be a permission problem? Normal users can't create/delete folders directly under C:\.
Otherwise, give me the exact location and name of the folder and I create a WiseScript (selfexecutable .exe file) for you which you could include in a .msi Custom Action.
Or what about deleting the folder through the RemoveFiles table?


Answered 06/21/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment
how about trying this script ................

On Error Resume Next
Dim fso, s
Set fso = CreateObject("Scripting.FileSystemObject")
Answered 06/22/2006 by: Godfather
Senior Yellow Belt

Please log in to comment
Thanks a lot everyone.... inside the folder there was sub folder which was causing the permssion problem, so delete all the folder using vbscirpt & rename the error ones to something else.. ....
Answered 06/22/2006 by: aa006
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity